[Newbie] send data to raspberry

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Posts: 1
Joined: Fri Jun 16, 2017 2:27 pm

[Newbie] send data to raspberry

Post by enricosx » Fri Jun 16, 2017 2:32 pm

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? :D

User avatar
Posts: 1374
Joined: Thu May 28, 2015 5:54 pm

Re: [Newbie] send data to raspberry

Post by deshipu » Fri Jun 16, 2017 4:30 pm

Maybe start with the examples in the "examples" directory?

User avatar
Posts: 33
Joined: Wed Oct 19, 2016 11:31 am
Location: Alsace, Europe

Re: [Newbie] send data to raspberry

Post by ioukos » Sat Jun 17, 2017 5:44 am


It depends on what your application is, but to should have a look to bsd sockets or mqtt. Personnaly I use mqtt.

User avatar
Posts: 4466
Joined: Fri Jul 18, 2014 8:01 am
Location: UK

Re: [Newbie] send data to raspberry

Post by pythoncoder » Mon Jun 19, 2017 6:51 am

+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

Post Reply