class documentation
Sensor Agent
This agent is used to handle publications to the sensor topic and any publications it makes.
| Method | __init__ |
Construct the Sensor agent |
| Method | handle |
Handle a publication This method is called by the MQTT client when a publication is received. |
| Constant | SENSOR |
Sensor payload look up |
| Constant | SENSOR |
Undocumented |
| Method | _create |
Overrides version in base class |
| Async Method | _pub |
Publication check |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _sensor |
Undocumented |
Construct the Sensor agent
Create object variables and initialise the base Agent class topic and QoS
Handle a publication This method is called by the MQTT client when a publication is received.
| Parameters | |
| topic | the topic of the publication |
| dup | True if this is a duplicate publication |
| ret | True if this is a retained publication |
| payload | the payload of the publication as a string |
SENSOR_PAYLOAD =
¶
Sensor payload look up
Dictionary to translate internal status to reported status
| Value |
|