ESP-AT Abort Serial Data transfer (after '>' character)
Posted: Mon Oct 24, 2022 8:39 am
Hi,
I'm using the ESP-AT firmware on an ESP32 chip.
I'm unable to find any method to cancel/abort the serial data transfer after getting the usual '>' character
This is used in commands like AT+HTTPCPOST or AT+BLEGATTSNTFY.
Sometimes an error might be detected after starting the direct data transfer and I can't see any way to abort the transfer.
Right now the only way is by sending the required number of characters specified in the source AT command
(ie:)
This would expect 427 chars.
If an error occurs while sending the data (ie: file read error) what should i do to go back to the normal AT mode?
The documents don't specify how to deal with this situation and google didn't help either.
Thanks in advance.
Toni
I'm using the ESP-AT firmware on an ESP32 chip.
I'm unable to find any method to cancel/abort the serial data transfer after getting the usual '>' character
This is used in commands like AT+HTTPCPOST or AT+BLEGATTSNTFY.
Sometimes an error might be detected after starting the direct data transfer and I can't see any way to abort the transfer.
Right now the only way is by sending the required number of characters specified in the source AT command
(ie:
Code: Select all
AT+HTTPCPOST="http://httpbin.org/post",427,2,"connection: keep-alive","content-type: application/json"
This would expect 427 chars.
If an error occurs while sending the data (ie: file read error) what should i do to go back to the normal AT mode?
The documents don't specify how to deal with this situation and google didn't help either.
Thanks in advance.
Toni