Type Alias MqttClientProxyMessage

MqttClientProxyMessage: Message<"meshtastic.MqttClientProxyMessage"> & {
    payloadVariant: {
        case: "data";
        value: Uint8Array;
    } | {
        case: "text";
        value: string;
    } | {
        case: undefined;
        value?: undefined;
    };
    retained: boolean;
    topic: string;
}

This message will be proxied over the PhoneAPI for the client to deliver to the MQTT server

Type declaration

  • payloadVariant: {
        case: "data";
        value: Uint8Array;
    } | {
        case: "text";
        value: string;
    } | {
        case: undefined;
        value?: undefined;
    }

    The actual service envelope payload or text for mqtt pub / sub

    from oneof meshtastic.MqttClientProxyMessage.payload_variant

  • retained: boolean

    Whether the message should be retained (or not)

    from field: bool retained = 4;

  • topic: string

    The MQTT topic this message will be sent /received on

    from field: string topic = 1;

from message meshtastic.MqttClientProxyMessage