0

I'm having a hard time trying to understand how I can use my Raspberry Pi to retrieve and display data from my Arduino that has an ESP8266 WiFi module and a DHT temp and humidity sensor connected to it.

My Arduino is outside connected to my bee hives and my Pi3 is in my room. I can ping the ESP's IP address with success. It's been years since I did anything with Python and I'm trying to relearn on my Pi. I don't want to stream to a website and back to my Pi, just want to stay on my home network. Can anyone help me understand how to write a simple script for my Pi? Ps. I'm new to posting questions on forums, arduino, raspberry pi, and networking.

Aurora0001
  • 6,357
  • 3
  • 25
  • 39
oibdrew
  • 5
  • 5

1 Answers1

2

You could write something to communicate directly between the ESP8266 and RPi, but a flexible option is to use something like a MQTT broker. The broker itself can run on your RPi, or on another computer. Writing clients to talk to the MQTT broker is trivial on both the ESP8266 (using Arduino IDE) and on the RPi using a variety of libraries, including python. The beauty of this approach is that you can easily add clients and features using the publish and subscribe mode of communications.

bobstro
  • 3,978
  • 15
  • 27