79234311

Date: 2024-11-28 14:44:04
Score: 1
Natty:
Report link

My solution was to implement my custom slave context, deriving it from ModbusSlaveContext. I implement a custom version of setValues, with an additional parameters dont_persist (which defaults to 0, meaning the value must be written to a file on disk). Then, in my updating function, I pass the value True to this argument, which means the value is not written to file.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: bui3