w3c / wot-binding-templates

Web of Things (WoT) Binding Templates
http://w3c.github.io/wot-binding-templates/
Other
22 stars 25 forks source link

[MODBUS] - Accessing bit data from Holding/Input registers #355

Closed rlabbeptc closed 6 months ago

rlabbeptc commented 6 months ago

I wanted to share a use case that the current Modbus definitions don't seem to support. In the field it's common for devices to have bit-based data packed into holding registers. These individual Boolean statuses will often be desired to have their own property or object to monitor the value without needing to do Boolean lookups from the full register value.

I don't see any method to define this in the thing description as the schema is defined today. Is this a use case that is being considered?

egekorkan commented 6 months ago

Hi @rlabbeptc ! Yes we have some issues tracking this. See https://github.com/w3c/wot-thing-description/issues/1930 . We will probably refer to this as data mapping in the future.

rlabbeptc commented 6 months ago

Thanks for pointing that out and appreciate the feedback. That looks to be exactly what I was thinking. I'll close this since this is being tracked by that issue.