MeshtasticClient.Message (meshtastic_client v0.1.0)

Handles encoding and decoding of Meshtastic protobuf messages.

Summary

Functions

Decodes a received packet from the device.

Requests device configuration. This sends a want_config_id request to the device which will respond with configuration, node info, and other device state.

Gets local node information. This is typically sent automatically after connecting.

Encodes and sends a packet to the device.

Sends a position update.

Sends a text message.

Functions

decode_packet(data)

Decodes a received packet from the device.

get_config(conn)

Requests device configuration. This sends a want_config_id request to the device which will respond with configuration, node info, and other device state.

Start with config_id 0 to initiate the handshake and get all configuration.

get_node_info(conn)

Gets local node information. This is typically sent automatically after connecting.

send_packet(conn, packet)

Encodes and sends a packet to the device.

send_position(conn, opts \\ [])

Sends a position update.

send_text(conn, text, opts \\ [])

Sends a text message.