PyCom to User Device over WiFi
-
I am trying to send sensor data from my Pycom Device (Pycom MicroPython 1.20.2.r6 [v1.11-c5a0a97] on 2021-10-28; LoPy4 with ESP32 Pybytes Version: 1.7.1) to a user PC over WiFi.
I am new to Pycom and wanted to know if this is possible where the user is running a Python Program to send or receive data from a pycom device?
I want to establish this connection over a home network where both my devices are connected to the same local network over UDP or TCP.
Can someone help me out with this?
-
Yes, I was able to get it to work over MQTT. But my task is mainly to use UDP or TCP. So I am looking for some solution with respect to that.
-
How about using MQTT? I run a mosquitto server on my Linux desktop, and chuck sensor data and status info from my Lopy4s at it. I can use GUI or CLI MQTT clients on the desktop and also MQTTInspector on my iPhone/iPad to look at the data or send stuff back to the Lopy4s. It all hangs together really well.