HI Rui & Sara,
I have been using your tutorial and sample codes for my project utilizing the SIM800, PHP & MySQL. Recently, I upgraded the modem to SIM7600-4G. with little modification.
Now that I have upgraded my webserver package to support websocket connection, is there a tutorial to help me modify the HTTP POST/GET connection, to using websocket connection instead.
Appreciate your help and thank you.
Hi.
We have the following tutorial about websockets: https://randomnerdtutorials.com/esp32-websocket-server-arduino/
However, I think if you just want to establish a web socket connection, in which the ESP32 is the client, I think this is a better tutorial: https://techtutorialsx.com/2017/11/01/esp32-arduino-websocket-client/
I hope this helps.
Regards,
Sara
I already went thru the tutorial before posting my question here. It did not help me on the problem i am facing
Hi again.
I’m sorry, but you didn’t specify what was exactly the problem. Can you provide more details?
Hi Sara,
Basically, I would like to make this tutorial of yours, https://randomnerdtutorials.com/esp32-sim800l-publish-data-to-cloud/, to use websocket instead of http post.
my real time data is taken every 50ms for 5mins. I would like to upload those using websocket, since by using http post, average turn around time per upload is about 1.5sec.
The real question is: Is it possible to use websocket with TinyGsm library. or if someone has done it?
thanks.
Hi.
I found this example that might help: https://gist.github.com/Tolerant/2d1af4c99995c6c7e348b874b73ecbb8
(I didn’t test it, but I think it might be a good starting point).
I hope this helps.
Regards,
Sara