B4R Question ESP8266 asyncstream prefix mode bug ?

Andrej Meszaros

Member
Licensed User
Longtime User
Hi,

I have a small project which is working. I send small packets ( cca 30-40 bytes ) over cloud mqtt from my android phone to my system connected to internet over ESP8266. Everything is working.

I make changes in project and I need to send bigger packets.

My system send packet on serial line to ESP8266.
I use asyncstream with prefix mode.
ESP sends the received packet over internet to cloud mqtt and my android phone received the packet.

But when I increase the packet size from 34 to 234, it is not working.

After hours on testing on other ESP modules, I can say the following :

When I send serial packet with prefix format to ESP, the ESP receives it only when the packet size is smaller as 120. Bigger packet doesnt work.

upload_2017-9-24_0-2-31.png


The documentation say, we can have maximum 500 bytes.
I have created a small B4J file for testing.

Erel, please can You check this issue ?

Thank You

Andrej
 

Attachments

  • b4j.zip
    964 bytes · Views: 265
  • b4r.zip
    825 bytes · Views: 238

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top