The first you would like to do in an Internet of Things environment is to read values from your Thing. The device can of course have several available values here we show a simple readout getting all available values that you as a peer has access to. More details on the read process is in the xmpp specification
##Read all fields available
Readout of all momentary fields from a Thing (device)
Request to another peer
The respons confirming the readout
next respons with the data contained
*Observe the “done=’true’” above meaning that this was a single respons
##Read all fields inside a node in the device Devices can have different subparts called nodes. You can ask a specific node for all it’ fields.
##Read a specific field inside a node in the device Of course you can readout a specific field within a specific node inside the device.
##Parent restricting the access For every request the device should ask it’s parent the trusted party if the request is allowed the trusted party can reject the request and the device can cache that information for later use.
Parent: A parent is an optional peer being the device Best friend or trusted party and is responsible for providing the device with the access priviliges for different peers.
Node: A Thing can model it’s content in several “nodes” for example a heatpump can model it’s content as the nodes Pump, WaterHeater, Compressor which all can have several fields.
Field: A Thing can have several fields every field is a low level value having some type of SI unit such as kWh, temp in F,C or K.