simonvetter / modbus

Go modbus stack (client and server)
MIT License
262 stars 83 forks source link

Reading strings #8

Closed guydillen closed 2 years ago

guydillen commented 2 years ago

Hello,

I have a use case where I have to read consecutive strings: 15 bytes, 10 bytes and 10 bytes. (How) can I achieve this with your library?

Thanks. Guy

simonvetter commented 2 years ago

Sorry for the late reply, i've been fairly busy this week.

I had byte access methods baking in a branch somewhere, waiting to be cleaned up, tested and merged. The latest release (v1.5.0) adds ReadBytes(), WriteBytes(), ReadRawBytes() and WriteRawBytes(). Does that help with your use case?

simonvetter commented 2 years ago

Going to close this for now since it's been left idle for a long time. Feel free to reopen if needed.