Basic local machine to machine interactions

In this recipe, we are going to demonstrate Basic local machine to machine interactions. To do that, we will build a simple project that demonstrates machine to machine interaction between two ESP8266 boards. This will enable you to create simple networks using your ESP8266 boards, with no Internet connection.

Getting ready

You will need the following hardware components for this project:

  • Two ESP8266 boards
  • Two USB cables
  • 220 Ω resistor
  • LED
  • Momentary Push button
  • 10 kΩ resistor

Connect a Push button and a 10 kΩ pull up resistor to the GPIO2 pin. The Push button will be used as an input. This ESP8266 board will be configured as the client. The setup is shown in the following figure:

For the second ESP8266, connect ...

Get ESP8266 Internet of Things Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.