hello, i buy my first Nodemcu, flash micropython and now i want send text data (sensors or other) over wifi to my raspberrypi raspbian.
what is the best easy super simple way do to that?
[Newbie] send data to raspberry
Re: [Newbie] send data to raspberry
Maybe start with the examples in the "examples" directory?
Re: [Newbie] send data to raspberry
Hi,
It depends on what your application is, but to should have a look to bsd sockets or mqtt. Personnaly I use mqtt.
It depends on what your application is, but to should have a look to bsd sockets or mqtt. Personnaly I use mqtt.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: [Newbie] send data to raspberry
+1 for MQTT. Run mosquitto on the Pi. Learn its use by running mosquitto_pub and mosquitto_sub between the Pi and a networked PC or between two PC's. Then install and use the umqtt libraries on your board. mosquitto is super-easy to use. I wrote some notes on MQTT here which may be of some use viewtopic.php?f=16&t=2239.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.