Page 1 of 1

esp32-c3 websocket server

Posted: Mon Jun 13, 2022 1:53 pm
by FlorianR
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

Re: esp32-c3 websocket server

Posted: Tue Jun 14, 2022 3:59 am
by ESP_YJM
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.

Re: esp32-c3 websocket server

Posted: Tue Jun 14, 2022 4:35 am
by FlorianR
Yes , thank you very much , I have these examples, but I am too dumb to add the JavaScript HTML.

Re: esp32-c3 websocket server

Posted: Tue Jun 14, 2022 12:36 pm
by FlorianR
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

Re: esp32-c3 websocket server

Posted: Wed Jun 15, 2022 1:19 am
by ESP_Sprite
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?