module documentation

MQTT Agents - Command Station and Global

This module provides access to the MQTT interface via MQTT agents which manage subscriptions and publications on behalf of relevant hardware and applications software.

This module provides functions for the command station. E.g. MQTT Agents for DCC and RailCom Channel 2.

MQTT version 3.1.1 as documented https://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html

QoS2 not supported - only QoS0 or 1

Sessions are clean - i.e. no context saved between sessions.

Author
Paul Redhead
Class Cab Cab Agent
Class Power Layout Power Agent
Constant _DYN_INFO_ENCODE Undocumented
_DYN_INFO_ENCODE = ΒΆ

Undocumented

Value
{RComCmdRsp.DYN_REAL_SPEED: ('SPEED', (lambda x: x)),
 RComCmdRsp.DYN_TEMP: ('TEMP', (lambda x: x - 50)),
 RComCmdRsp.DYN_DIRECTION: ('DIRECTION', (lambda x: x)),
 RComCmdRsp.DYN_RECEP_STATS: ('RECEP_STATS', (lambda x: x)),
 RComCmdRsp.DYN_TRACK_VOLT: ('TRACK_VOLTS', (lambda x: x / 10 + 5))}