The bluetooth to device link: Old BTLE protocol docs from TODO, merge in above and make real docs... use protocol buffers, and NanoPB messages from device to phone: POSITION_UPDATE (..., time) TEXT_RECEIVED(from, text, time) OPAQUE_RECEIVED(from, payload, time) (for signal messages or other applications) messages from phone to device: SET_MYID(id, human readable long, human readable short) (send down the unique ID string used for this node, a human readable string shown for that id, and a very short human readable string suitable for oled screen) SEND_OPAQUE(dest, payload) (for signal messages or other applications) SEND_TEXT(dest, text) Get all nodes() (returns list of nodes, with full info, last time seen, loc, battery level etc) SET_CONFIG (switches device to a new set of radio params and preshared key, drops all existing nodes, force our node to rejoin this new group) Full information about a node on the mesh

Generated

from message meshtastic.NodeInfo

Hierarchy

Constructors

  • Parameters

    Returns NodeInfo

Properties

channel: number

local channel index we heard that node on. Only populated if its not the default channel.

Generated

from field: uint32 channel = 7;

deviceMetrics?: DeviceMetrics

The latest device metrics for the node.

Generated

from field: meshtastic.DeviceMetrics device_metrics = 6;

hopsAway: number

Number of hops away from us this node is (0 if adjacent)

Generated

from field: uint32 hops_away = 9;

isFavorite: boolean

True if node is in our favorites list Persists between NodeDB internal clean ups

Generated

from field: bool is_favorite = 10;

lastHeard: number

Set to indicate the last time we received a packet from this node

Generated

from field: fixed32 last_heard = 5;

num: number

The node number

Generated

from field: uint32 num = 1;

position?: Position

This position data. Note: before 1.2.14 we would also store the last time we've heard from this node in position.time, that is no longer true. Position.time now indicates the last time we received a POSITION from that node.

Generated

from field: meshtastic.Position position = 3;

snr: number

Returns the Signal-to-noise ratio (SNR) of the last received message, as measured by the receiver. Return SNR of the last received message in dB

Generated

from field: float snr = 4;

user?: User

The user info for this node

Generated

from field: meshtastic.User user = 2;

viaMqtt: boolean

True if we witnessed the node over MQTT instead of LoRA transport

Generated

from field: bool via_mqtt = 8;

fields: FieldList
runtime: ProtoRuntime
typeName: "meshtastic.NodeInfo" = "meshtastic.NodeInfo"

Methods

  • Create a deep copy.

    Returns NodeInfo

  • Compare with a message of the same type. Note that this function disregards extensions and unknown fields.

    Parameters

    Returns boolean

  • Parse from binary data, merging fields.

    Repeated fields are appended. Map entries are added, overwriting existing keys.

    If a message field is already present, it will be merged with the new data.

    Parameters

    • bytes: Uint8Array
    • Optional options: Partial<BinaryReadOptions>

    Returns this

  • Parse a message from a JSON value.

    Parameters

    • jsonValue: JsonValue
    • Optional options: Partial<JsonReadOptions>

    Returns this

  • Parse a message from a JSON string.

    Parameters

    • jsonString: string
    • Optional options: Partial<JsonReadOptions>

    Returns this

  • Retrieve the MessageType of this message - a singleton that represents the protobuf message declaration and provides metadata for reflection- based operations.

    Returns MessageType<NodeInfo>

  • Serialize the message to binary data.

    Parameters

    • Optional options: Partial<BinaryWriteOptions>

    Returns Uint8Array

  • Override for serialization behavior. This will be invoked when calling JSON.stringify on this message (i.e. JSON.stringify(msg)).

    Note that this will not serialize google.protobuf.Any with a packed message because the protobuf JSON format specifies that it needs to be unpacked, and this is only possible with a type registry to look up the message type. As a result, attempting to serialize a message with this type will throw an Error.

    This method is protected because you should not need to invoke it directly -- instead use JSON.stringify or toJsonString for stringified JSON. Alternatively, if actual JSON is desired, you should use toJson.

    Returns JsonValue

  • Serialize the message to a JSON value, a JavaScript value that can be passed to JSON.stringify().

    Parameters

    • Optional options: Partial<JsonWriteOptions>

    Returns JsonValue

  • Serialize the message to a JSON string.

    Parameters

    • Optional options: Partial<JsonWriteStringOptions>

    Returns string

  • Parameters

    Returns boolean

  • Parameters

    • bytes: Uint8Array
    • Optional options: Partial<BinaryReadOptions>

    Returns NodeInfo

  • Parameters

    • jsonValue: JsonValue
    • Optional options: Partial<JsonReadOptions>

    Returns NodeInfo

  • Parameters

    • jsonString: string
    • Optional options: Partial<JsonReadOptions>

    Returns NodeInfo

Generated using TypeDoc