• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Websocket, PHP & MySQL

Q&A Forum › Category: ESP32 › Websocket, PHP & MySQL
0 Vote Up Vote Down
NUR AZLIN AIRUL AZLIN MOHAMED ZOHDI asked 3 years ago

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.
 

Question Tags: websocket php mysql esp32 sim7600 sim800
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

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 

0 Vote Up Vote Down
NUR AZLIN AIRUL AZLIN MOHAMED ZOHDI answered 3 years ago

I already went thru the tutorial before posting my question here.  It did not help me on the problem i am facing

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi again.
I’m sorry, but you didn’t specify what was exactly the problem. Can you provide more details?

0 Vote Up Vote Down
NUR AZLIN AIRUL AZLIN MOHAMED ZOHDI answered 3 years ago

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.

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.