-->
Page 1 of 2

Linux (on a router) pulling data from ESP8266 network

PostPosted: Tue Apr 28, 2015 10:14 am
by Sunspot
I have a master Linux router box running Openwrt with a web server and I write scripts to set up web pages of data from my LAN.
I currently use slave Linux router boxes to measure temperatures etc and pull data to the master with Linux wget.

I now want to use ESP8266 slaves each with its own i2c local net of sensors.

Sorry - I am new to lower level network protocols. Is there an example sketch that can communicate with some Linux app on the master box and deposit the data there as a text file?

I guess I need to run something on my master Linux box similar to whatever runs on data.sparkfun.com?

Any pointer to get me started appreciated

Re: Linux (on a router) pulling data from ESP8266 network

PostPosted: Wed Apr 29, 2015 6:33 am
by Sunspot

Re: Linux (on a router) pulling data from ESP8266 network

PostPosted: Wed Apr 29, 2015 7:36 am
by j0hncc
I recommend MQTT, I am very pleased with it. Install/run mosquitto on your master linux box. MQTT provides an easy common protocol.

I also use node-red for easy routing/ interfacing to/from MQTT to/from other sources/destinations, e.g. mySQL database.

Cheers,
John

Re: Linux (on a router) pulling data from ESP8266 network

PostPosted: Wed Apr 29, 2015 11:01 am
by ian
I'll second that. MQTT & node-red is a nice combination.
MQTT works well with open-wrt too. I use it on a TP-Link 703.

Ian