esp32-c3 websocket server

FlorianR
Posts: 28
Joined: Fri Mar 12, 2021 2:00 pm

esp32-c3 websocket server

Postby FlorianR » Mon Jun 13, 2022 1:53 pm

Hi There!
I have found a wonderful example of a websocket that shows real time sensor data
https://randomnerdtutorials.com/esp32-w ... r-arduino/
That is more or less exactly what I need for my project :)
Sadly it is written with the Arduino framework and I need to Implement it in the ESP-IDE.
I looked into every http example of the ESP-IDE and am totally lost on how to recreate this.
I just want to receive lots of states and add buttons that control something ^^
Can someone help me please!
best regards from Germany
Florian

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: esp32-c3 websocket server

Postby ESP_YJM » Tue Jun 14, 2022 3:59 am

ESP-IDF still has websocket server, you can refer to example with URL https://github.com/espressif/esp-idf/tr ... wss_server or https://github.com/espressif/esp-idf/tr ... cho_server.

FlorianR
Posts: 28
Joined: Fri Mar 12, 2021 2:00 pm

Re: esp32-c3 websocket server

Postby FlorianR » Tue Jun 14, 2022 4:35 am

Yes , thank you very much , I have these examples, but I am too dumb to add the JavaScript HTML.

FlorianR
Posts: 28
Joined: Fri Mar 12, 2021 2:00 pm

Re: esp32-c3 websocket server

Postby FlorianR » Tue Jun 14, 2022 12:36 pm

I tried now for 3 days straight to implement this in the ESP-IDE, but I am no step closer. :(
Is there someone who has done something similar, who would be willing to share his/her code with me?
I am totally new to this and am quite overwhelmed.

Best regards
Florian

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: esp32-c3 websocket server

Postby ESP_Sprite » Wed Jun 15, 2022 1:19 am

People tend to be a bit more helpful if you post your work and thought process. What do you currently have, why did you write it in that way, what do you expect it to do, what does it actually do?

Who is online

Users browsing this forum: Bing [Bot], jjsch-dev and 98 guests