http://en.trialcommand.com/blog/esp8266-slave-modbus-tcpip-no-libraries/ /* * More Tutorials: * Website http://trialcommand.com * In English: http://en.trialcommand.com * En Español: http://en.trialcommand.com */ #include <ESP8266WiFi.h> const char* ssid = “KMTRONIC”; const char* password = “12345678”; // RS485 Control pin const int RS485_control = D0; // Receive buffer long Buffer[9]; int VoltageReadCommand[] ={0x01, 0x04, 0x00, 0x00, 0x00, 0x02, 0x71, . . .
ESP8266: Reading Voltage from SDM120 Modbus Power Energy Meter
