|
BAOS SDK v2
1.2.1
An SDK providing access to IP-BAOS devices through BAOS binary protocol version 2.x
|
This sample shows how to read and write datapoint values via the device API.
Usage:
Pre-condition: It assumes that the following datapoints are configured:
|---------|-----------------|-----------------------------|-------------|---------------| | Id | DPT | Name | SizeInBit | Flags | | | | | | C R W T U I | |---------|-----------------|-----------------------------|-------------|---------------| | 1 | DPT 01 - 1 bit | Actuator A - Switch | 1 | C - W - - - | |---------|-----------------|-----------------------------|-------------|---------------| | 2 | DPT 01 - 1 bit | Actuator A - State | 1 | C R - T - - | |---------|-----------------|-----------------------------|-------------|---------------| | 3 | DPT 01 - 1 bit | Actuator B - Switch | 1 | C - W - - - | |---------|-----------------|-----------------------------|-------------|---------------| | 4 | DPT 01 - 1 bit | Actuator B - State | 1 | C R - T - - | |---------|-----------------|-----------------------------|-------------|---------------| | 10 | DPT 07 - 2 bytes| Counter | 16 | C R W T I - | |---------|-----------------|-----------------------------|-------------|---------------| | 100 | DPT 01 - 1 bit | not linked with group | 1 | - - W T - - | <- not linked with a group address |---------|-----------------|-----------------------------|-------------|---------------|