I'm trying to read some serial (ADC) data from my esp8266 nodeMCU v3 over wifi using python. I connected the esp on my local wifi and set it with fixed local IP using arduino IDE, but I couldn't find a way to extract the data using Python. In a normal case, I just type in my python code the COM Port number and the Baudrate and just read. But with Wifi I counld not find a simple solution. any Ideas ? Thanks
-
There is no simple Serial via Wifi. You can look into websockets. I think that would be the way to transmit the data over the wifi networkchrisl– chrisl2021-09-14 08:42:18 +00:00Commented Sep 14, 2021 at 8:42
-
You can run an httpserver on the esp and request desired data via wifi. Here's a tutorial randomnerdtutorials.com/esp8266-web-server-with-arduino-ideSim Son– Sim Son2021-09-14 13:34:25 +00:00Commented Sep 14, 2021 at 13:34
-
A basic TCP connection via WiFiClient would be easier than web sockets or an HTTP server, and would provide a reliable byte stream.romkey– romkey2021-09-14 16:39:39 +00:00Commented Sep 14, 2021 at 16:39
Add a comment
|