IPD Passive - Byte Length Wrong

crankshaft
Posts: 2
Joined: Wed Oct 17, 2018 10:06 pm

IPD Passive - Byte Length Wrong

Postby crankshaft » Wed Oct 17, 2018 10:33 pm

Hello;

Firstly, thanks soooooo much for the IPD Passive mode, I wrote some code back in June using the standard IPD mode and spent ages trying to get it to reliably work, but gave up in the end, but the new Passive mode is a HUGE improvement.

I have this working but think I have found a bug, I am testing a mqtt connection and the initial MQTT client connection returns 4 Bytes which I need to inspect and validate:

Code: Select all

b' \x02\x00\x00'


Note the first character which is s space.

When I request 4 characters from IPD it actually returns 6 instead (which includes \r\n):

Code: Select all

AT+CIPRECVDATA=4
b'+CIPRECVDATA,4: \x02\x00\x00\r\n'


I have worked around this problem, but suspect that the space at the beginning is somehow breaking the size calculation ?

Her Majesty
Posts: 345
Joined: Mon Oct 27, 2014 11:09 am

Re: IPD Passive - Byte Length Wrong

Postby Her Majesty » Thu Nov 08, 2018 6:26 pm

"+CIPRECVDATA,n:" ends with a new line and an "OK", doesn't it?

Who is online

Users browsing this forum: No registered users and 3 guests