Hi, I have been playing with Esp32, and if I am not doing something wrong the following are bugs.
1, The quad encoder Post Scaler 1:4 does not work it always returns 4 steps at a time.
2, If putting an OR statement in a loop will not compile to hex.
3, for some strange reason sometimes ( not always) when using local variables, will cause failure to compile ( then use global and compile ok)
4, MQTT read timeout does not work Setting it 50ms it stops there until a message is received after 1
a minute or so if no message is received will exit and will not work again.
ESP32
-
- Valued Contributor
- Posts: 447
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 81 times
- Been thanked: 243 times
Re: ESP32
Hi,
Thanks for the post.
Would it be possible for you to give us some examples?
These look like very specific scenarios that we might not have enough information to replicate.
For example, OR is a bitwise OR, so might not be suitable for your situation.
Thanks
Thanks for the post.
Would it be possible for you to give us some examples?
These look like very specific scenarios that we might not have enough information to replicate.
For example, OR is a bitwise OR, so might not be suitable for your situation.
Thanks
Re: ESP32
HI ,
So the loop bug example -> Loop until: var1 = 100 OR var2 = 200 .
As for the MQTT read timeout, this is very important cos it stops all the code from executing
I was able to work around the problem of it stop receiving by doing a disconnect and connecting again
every time I run the Read.
but it still hangs there waiting.
So the loop bug example -> Loop until: var1 = 100 OR var2 = 200 .
As for the MQTT read timeout, this is very important cos it stops all the code from executing
I was able to work around the problem of it stop receiving by doing a disconnect and connecting again
every time I run the Read.
but it still hangs there waiting.
- Attachments
-
- Flowcode1.fcfx
- (24.85 KiB) Downloaded 632 times
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 684 times
Re: ESP32
Hello,
Does this work any better for you?
Does this work any better for you?
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: ESP32
Hi Ben, Thanks for your reply
No, it does not work, the led does not blink because the read timeout is not working
and the esp is stuck waiting for the MQTT message.
After some time led starts to blink but then it does not receive MQTT messages anymore
then it connects again and stops there waiting again.
I can still ping the esp and my MQTT server is also pingable.
No, it does not work, the led does not blink because the read timeout is not working
and the esp is stuck waiting for the MQTT message.
After some time led starts to blink but then it does not receive MQTT messages anymore
then it connects again and stops there waiting again.
I can still ping the esp and my MQTT server is also pingable.