CommandSender
Interface for sending commands and packets to the mesh network.
Functions
Generates a new unique packet ID.
Returns the cached channel set.
Returns the cached local configuration.
Returns the current packet ID.
Requests neighbor info from a specific node.
Requests the position of a specific node, or throws if the outbound queue rejects it.
Requests telemetry from a specific node, or throws if the outbound queue rejects it.
Requests telemetry only if expectedConnectionVersion still owns queue admission.
Requests a traceroute to a specific node, or throws if the outbound queue rejects it.
Requests user info from a specific node, or throws if the outbound queue rejects it.
Sends an admin message and suspends until firmware processes it and returns a routing acknowledgement.
Detailed form of sendAdminAwait, including whether an active transport admitted the packet. Queue or transport rejection is represented by a non-accepted AwaitedSendResult with dispatched == false; it is not reported as PacketQueueRejectedException.
Sends an admin message only if expectedConnectionVersion still owns queue admission.
Sends an admin message immediately, bypassing the outbound packet queue. The queue only drains while the connection state is Connected, so mid-handshake sends (e.g. set_time_only at MyNodeInfo) must use this path or they stall until the handshake finishes.
Sends a data packet to the mesh. If the outbound queue refuses admission, the packet is marked org.meshtastic.core.model.MessageStatus.ERROR and PacketQueueRejectedException is thrown so the persistence owner can requeue or fail its durable record instead of treating a normal return as successful admission.
Sends a Lock Now command to immediately lock a locked-firmware device.
Sends our current position to the mesh, or throws if the outbound queue rejects it.
Sets a fixed position for a node, or throws if the outbound queue rejects the admin command.