2020-09-30 23:21:46 +03:00
|
|
|
//#include "items/SensorModbusClass.h"
|
|
|
|
|
//
|
2020-11-04 23:48:21 +03:00
|
|
|
//#include "BufferExecute.h"
|
2020-09-30 23:21:46 +03:00
|
|
|
////#ifdef SensorModbusEnabled
|
|
|
|
|
////=========================================Модуль 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
|