Home › Forums › Mayfly Data Logger › EspressifESP32 › Reply To: EspressifESP32
2026-08-04 at 5:36 PM
#19767
I have.
Before opening a tcp connection, the Socket Receiving Mode should be made to 1 (passive mode). I have no idea why it works only while doing this. But it works.
|
1 2 3 4 5 |
void ExpressifESP32::extraSetupForMQTT(){ // See :https://docs.espressif.com/projects/esp-at/en/release-v2.4.0.0/esp32/AT_Command_Set/TCP-IP_AT_Commands.html#at-ciprecvmode-query-set-socket-receiving-mode // This should be done before opening tcp connection _modem.sendAT(GF("+CIPRECVMODE=1")); } |
I found the modularsensor implementation difficult. Therefore wrote my own small class that wraps tinygsm for the functions that I need.
One thing I found is modemBaud is 57600 which is different from the comments in the esp class
Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of