Documentation
¶
Index ¶
Constants ¶
View Source
const ( //MODBUS_RTU_ADDRESS the range is 0x0001-0x00F7 MODBUS_RTU_ADDRESS Register = 0x0002 ////AlarmThreshold 1LSB correspond to 1W //AlarmThreshold Register = 0x0001 // ////ReadHoldingRegister command //ReadHoldingRegister Command = 0x03 //READ_INPUT_REGISTER command READ_INPUT_REGISTER Command = 0x04 //WRITE_SINGLE_REGISTER command WRITE_SINGLE_REGISTER Command = 0x06 ////Calibration command //Calibration Command = 0x41 //RESET_ENERGY command RESET_ENERGY Command = 0x42 DEVICE_UPDATE_TIME = 1000 DEVICE_DEFAULT_BAUD_RATE = 9600 DEVICE_DEFAULT_ADDRESS uint8 = 0xF8 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.