Open dbrgn opened 4 years ago
Did you consider using the "passive receive mode" (see https://docs.espressif.com/projects/esp-at/en/latest/AT_Command_Set/TCP-IP_AT_Commands.html#cmd-ciprecvmode)?
As I understand this, using that mode would make the URC simpler (containing just the length of the data) and a subsequent command would be used to actually receive the data. I'm not sure if that's easier but it's probably worth looking into.
Woahhhh, thanks a lot for pointing that out. It would/will make an implementation so much easier.
These +IPD messages that can come in at any time are really a pain to handle.
Waiting for https://github.com/BlackbirdHQ/atat/pull/35, but it kind of works already:
API is still very unergonomic.