-->
Page 1 of 2

esp communicate with raspberry pi

PostPosted: Thu May 09, 2019 1:16 am
by kashifmirza
I want to use ESP8266 to communicate with Raspberry Pi with sharing of sensors data but some time so many delay
i am new in this fourm
plz positive response :)

Re: esp communicate with raspberry pi

PostPosted: Thu May 09, 2019 11:38 am
by btidey
A common basic method of sending data is to use the MQTT protocol. You would use a MQTT client on the esp8266 and a MQTT server (broker) on the raspberry. If you search for esp8266 raspberry MQTT you will find lots of examples. E.g. https://www.instructables.com/id/How-to ... d-ESP8266/

Re: esp communicate with raspberry pi

PostPosted: Thu May 09, 2019 12:22 pm
by Bonzo
From memory I used UDP to communicate with a Pi. The code is long gone as I found the Pi unreliable after about three months.

The Pi sent a request to the Nodemcu in my case and it sent the data back. Worked well and reliably until the Pi misbehaved. You may have the same problem I had.

Re: esp communicate with raspberry pi

PostPosted: Thu May 09, 2019 3:49 pm
by btidey
I can't comment directly on your Pi experience but I have found the Pi basic platform very reliable. I have about 8 performing various functions, security cameras, media machines, file / dlna servers, home automation hubs etc. Some have been up continuously for multiple years without requiring any attention.

Likewise I suspect if there was some fundamental issue then this would have shown up in the millions that have been used round the world. One of the problems people seem to have is shared by the ESP modules; not providing a solid power supply / cabling.