I am seeing no gap between CIPSEND commands. One command is sent before another is finished.
Add a delay and try. Also put some delay after TCP connection is opened and then send the connect packet.
To see if packets are formed properly, may be you can tap the UART lines and see in a hex editor.
Hello Peter Sir… I have downloaded the re written code by you on the link mbari_peter / sim800 mqtt-ravi
But when i am compiling it then it shows error that Serial2 is not declared , initTCP not declared… please help
Hello guys
i tried it too, and it gives me an error
“exit status 1 ‘initTCP’ was not declared in this scope”
your replay will be highly appreciated
regards
Hi champ! So the file you’ve downloaded comes with two .ino files, “modemDrivers” & “mqtt_NEW”. The problem you’re having is that the functions (e.g. “initTCP”) is defined in the “modemDrivers.ino” sketch. So to solve this the easiest way would be to 1. open modemDrivers, 2. press ctrl+a to select everything in that sketch 3. ctrl+c to copy everything 4. open mqtt_NEW and paste the copied code into the mqtt_NEW sketch - NB don’t override the code already inside the mqtt_NEW sketch, so just paste it way at the bottom.
Hi
I am facing a problem.
When I send an AT command, the response is empty.
Like as
I send “AT+CIPSEND” the response is empty.
How can I solve this problem ?