MqttEvents

MQTT events map for the MQTT client. Key is the event name and value is the corresponding callback function.


type MqttEvents = {
    connect: OnPacketCallback;
    reconnect: VoidCallback;
    disconnect: OnPacketCallback;
    close: VoidCallback;
    offline: VoidCallback;
    end: VoidCallback;
    error: OnErrorCallback;
    packetreceive: OnPacketCallback;
    packetsend: OnPacketCallback;
};