ModbusTCP Server -> Write local register
challo2018 opened this issue · comments
Fabian commented
I'm trying to setup Modbus TCP Server on WT32-ETH01. This ESP Reads values from 1-Wire Bus and should put them to an register.
I want to have a register which contains this data:
#include <ETH.h>
#include <ModbusIP_ESP8266.h>
Setup:
mb.server();
mb.addHreg(100, 0xABCD);
Loop:
mb.task();
if(newValues)
{
Hreg(100, <newValue>);
}
Following error is shown:
"Compilation error: 'Hreg' was not declared in this scope"
Any Idea what is wrong with my code?
Fabian commented
sorry i found syntax issue.
it is mb.Hreg(100, );