10.02.2022, 08:25
Try using multiple register write instead:
Code:
value = 4 -- bit 2 set to 1
res, err = mb:writemultipleregisters(33471, value)
log(res, err)