User manual

AOAA Kit Software User’s Guide
Page 43
Copyright 2012 © Embedded Artists AB
Dest Addr: Address of the Node that will receive the Unsubscribe message.
Src Addr: Address of the node sending the Unsubscribe message.
Flags: The flag field is not used for this message.
Msg ID: 0x04
Sub ID: Subscription ID (received in the subscribe response) for the subscription to cancel.
7.8 Value Message
The Value message publishes the value of a capability and is sent as a response to a Get message or
as a result of a subscription of a value change.
Dest Addr: Address of the Node that will receive the Value message.
Src Addr: Address of the node sending the Value message.
Cap: The flag field is called Cap since it contains the ID of the capability publishing its value,
see section 7.11 for a list of defined Capabilities.
Msg ID: 0x05
Value: The value is that is being published.
7.9 Poll Message
The Poll message is used by the Controller to check if a Node is still available and responding. The
Controller sends these messages regularly and if a Node doesn’t respond with a Poll Response
message that Node is considered to have detached from the network.
Dest Addr: Address of the Node that will receive the Poll message.
Src Addr: Address of the node sending the Poll message.
Flags: The flag field is not used for this message.
Msg ID: 0x06
7.9.1 Poll Response
The node that receives a Poll message must respond with a Poll Response message. The Poll
message ID is used for this response, but the Flag field has the value 0x8.
Dest Addr
Src Addr
Flags
Msg ID
1 byte
0x6
11 bits
0x8
Dest Addr
Src Addr
Flags
Msg ID
1 byte
0x6
11 bits
0x0
Dest Addr
Src Addr
Cap
Msg ID
Value
1 byte
0x5
1-6 bytes
11 bits
4 bits