Page 1 of 1

IPD Passive - Byte Length Wrong

Posted: Wed Oct 17, 2018 10:33 pm
by crankshaft

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

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 ?

Re: IPD Passive - Byte Length Wrong

Posted: Thu Nov 08, 2018 6:26 pm
by Her Mary
"+CIPRECVDATA,n:" ends with a new line and an "OK", doesn't it?