This commit is contained in:
Dmitry Borisenko
2020-12-16 19:28:44 +01:00
parent 2fc82c3311
commit 8f08459a5a
86 changed files with 17 additions and 3502 deletions

View File

@@ -1,23 +0,0 @@
#include "Consts.h"
#ifdef SensorModbusEnabled
#include "items/SensorModbusClass.h"
#include "BufferExecute.h"
//=========================================Модуль modbus===================================================================================
//modbus;id;anydata;Сенсоры;Температура;order;addr[1];regaddr[0];c[1]
//=========================================================================================================================================
SensorModbusClass mySensorModbus;
void modbus() {
mySensorModbus.update();
String key = mySensorModbus.gkey();
sCmd.addCommand(key.c_str(), modbusReading);
mySensorModbus.SensorModbusInit();
mySensorModbus.clear();
}
void modbusReading() {
String key = sCmd.order();
String addr = sCmd.next();
String regaddr = sCmd.next();
mySensorModbus.SensorModbusRead(key, addr.toInt(), regaddr.toInt());
}
#endif