bertmelis / esp32ModbusRTU

modbus RTU client for ESP32
MIT License
70 stars 44 forks source link

add functioncode 0x10 #5

Closed jandegr closed 5 years ago

jandegr commented 5 years ago

This adds functioncode 0x10 write multiple registers functionality. Tested only on SDM120 to change the settings of the meter, writing 2 parameters at once as described in the manual. Unfortunatly I have no slave devices available to test writes with different data length.

EDIT writing two parameters on SDM as tested is writing 4 bytes.

bertmelis commented 5 years ago

Thank you for the addition! I'll google for sample data to write a test case.