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 ?