Search found 3 matches
- Thu Jul 30, 2020 10:29 am
- Forum: General Discussion
- Topic: The right / easy way for live two way commands
- Replies: 4
- Views: 7156
Re: The right / easy way for live two way commands
I actually made some progress and am able to send data both ways with raw socket between ESP32 and a PHP script. If it ends up well, I will post all the details. I looked at MQTT for a while, but this also seems to involve too many software components. The way I did it now and my objective is for ES...
- Wed Jul 29, 2020 2:59 pm
- Forum: General Discussion
- Topic: The right / easy way for live two way commands
- Replies: 4
- Views: 7156
Re: The right / easy way for live two way commands
I cam across mqtt a few more times, so I will give that a try too, if anyone has more thoughts, please share. I was able to create sockets with PHP too and from esp32 send data with: #include <WiFi.h> [...] client.connect(ip, port); client.print("Hello from ESP32!\n\r"); This code seems simple enoug...
- Wed Jul 29, 2020 12:41 pm
- Forum: General Discussion
- Topic: The right / easy way for live two way commands
- Replies: 4
- Views: 7156
The right / easy way for live two way commands
Hello. I am new to ESP32... What is the right way to create a "live" connection to my server, so the board can receive (and send) live commands, e.g when I press a button in my web server web interface the ESP would trigger the relay. Sending part (from esp to server) can be easy and would be reliab...