REST API for a ESP8266 MCU with a 8 Relay Module. Only tested with Amica NodeMCU.
- Add a
conf.h
file with your WiFi credentials:
#define SSID "YourWifiSsid"
#define PW "YourPassword"
- Compile and flash.
The API documentation is available on Postman.
The relay module is active low, this explains why ON
leads to a LOW
GPIO signal.
Connect the relay module IN1
to IN8
to GPIO 5
, 4
, 0
, 14
, 12
, 2
, 10
, and 13
.