class documentation
Block Agent
This agent is used to handle publications to the RailCom topic and any publications it makes.
| Method | __init__ |
Construct the Block agent |
| Method | handle |
Handle a publication This method is called by the MQTT client when a publication is received. |
| Constant | REPORTER |
Undocumented |
| Method | _create |
Overrides version in base class |
| Async Method | _pub |
Publication check |
| Instance Variable | _last |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _rc |
Undocumented |
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 |