This document provides an overview of CLI commands that can be sent to MeshCore Repeaters, Room Servers and Sensors.
Usage:
reboot
Note: No reply is sent.
Usage:
poweroff, orshutdown
Note: No reply is sent.
Usage:
clkreboot
Note: No reply is sent.
Usage:
clock sync
Usage:
clock
Usage:
time <epoch_seconds>
Parameters:
epoch_seconds: Unix epoch time
Usage:
advert
Usage:
advert.zerohop
Usage:
start ota
Starts the existing manual OTA mode:
- ESP32: starts a
MeshCore-OTAWiFi access point and web uploader at/update - nRF52: starts BLE DFU advertising for the nRF DFU app
Usage:
ota.checkota.update
ESP32-only. Uses the saved WiFi credentials from set wifi.ssid and set wifi.password, downloads the OTA manifest from the flasher site, finds the firmware matching this PlatformIO environment, and installs the newest non-merged .bin.
ota.check only reports whether an update is available. ota.update downloads and installs it, then reports reboot when the new image is ready. Use reboot to boot into the updated firmware.
This does not apply to nRF52, STM32 or RP2040 builds.
Usage:
erase
Serial Only: Yes
Warning: This is destructive!
Usage:
neighbors
Note: The output of this command is limited to the 8 most recent adverts.
Note: Each line is encoded as {pubkey-prefix}:{timestamp}:{snr*4}
Usage:
neighbor.remove <pubkey_prefix>
Parameters:
pubkey_prefix: The public key of the node to remove from the neighbors list. This can be a short prefix or the full key. All neighbors matching the provided prefix will be removed.
Note: You can remove all neighbors by sending a space character as the prefix. The space indicates an empty prefix, which matches all existing neighbors.
Usage:
discover.neighbors
Usage: clear stats
Usage:
get dense.statsclear dense.stats
Shows repeater dense-mesh counters in one place: flood adverts received, forwarded and dropped, CAD busy/timeout events, and flood/direct duplicate counters.
MeshCoreNG v2 also includes a rolling window for neighbor count, unique/duplicate flood RX, suppressed flood TX, RX/TX airtime, congestion level, and density level. These counters are RAM-only and do not change the packet protocol.
Serial Only: get dense.stats
Usage:
atlas enable <on|off>atlas position <on|off>atlas neighbors <on|off>atlas pathsample <on|off|0-10>atlas export <on|off>atlas export statusatlas export testget atlas.statsobserver export json
All Atlas features are disabled by default. Phase 1 exports information already available inside the firmware and does not change normal routing or increase flood traffic.
get atlas.stats returns JSON-like dense-mesh counters. observer export json returns Observer JSONL v1 lines over local serial only when Atlas export is enabled. atlas export test emits one fake JSONL event of each supported type for Atlas ingest testing.
Usage:
set reboot.daily <on|off>set reboot.interval <1-168>get reboot
Repeater and TCP bridge repeater builds can optionally reboot on an uptime timer. The feature is disabled by default. set reboot.daily on enables a 24-hour reboot interval unless changed with set reboot.interval.
When the timer expires, the repeater waits for the outbound TX queue to become idle, then reboots the board. RS232 and ESPNow bridge builds do not include this timer.
Usage:
get spam.statsclear spam.stats
Shows repeater counters for inspectable default-public group text: public packets seen, accepted packets, malformed drops, low-confidence spam drops, decrypt failures, and drop reasons such as short payload, unknown text type, empty text, invalid UTF-8 and bad timestamp.
The compact reason fields are s short, t type, e empty, u UTF-8 and tm timestamp.
These counters are RAM-only and reset on reboot, with clear spam.stats, or with clear stats.
Usage:
get repeater.healthget repeater.status
Shows a compact human-readable repeater status: health label, score, repeat on/off state, RX error percentage, airtime/congestion level, density level, duplicate RX percentage, spam drops, spam mode, SF and frequency.
The score is diagnostic only. It does not change forwarding behavior.
Usage:
get power.statsclear power.stats
Shows repeater power-saving counters: sleep attempts, sleep skipped because outbound work was pending, sleep skipped because a bridge/WiFi mode was active, wakeups caused by LoRa RX when the board reports that reason, and a compact board support indicator.
These counters are RAM-only and reset on reboot or with clear power.stats.
Serial Only: get power.stats
Usage:
stats-core
Serial Only: Yes
Usage: stats-radio
Serial Only: Yes
Usage: stats-packets
Serial Only: Yes
Usage: log start
Usage: log stop
Usage: log erase
Usage: log
Serial Only: Yes
Usage: ver
Usage: board
Usage:
get radioset radio <freq>,<bw>,<sf>,<cr>
Parameters:
freq: Frequency in MHzbw: Bandwidth in kHzsf: Spreading factor (5-12)cr: Coding rate (5-8)
Set by build flag: LORA_FREQ, LORA_BW, LORA_SF, LORA_CR
Default: 869.525,250,11,5
Note: Requires reboot to apply
Usage:
get txset tx <dbm>
Parameters:
dbm: Power level in dBm (1-22)
Set by build flag: LORA_TX_POWER
Default: Varies by board
Notes: This setting only controls the power level of the LoRa chip. Some nodes have an additional power amplifier stage which increases the total output. Refer to the node's manual for the correct setting to use. Setting a value too high may violate the laws in your country.
Usage:
tempradio <freq>,<bw>,<sf>,<cr>,<timeout_mins>
Parameters:
freq: Frequency in MHz (300-2500)bw: Bandwidth in kHz (7.8-500)sf: Spreading factor (5-12)cr: Coding rate (5-8)timeout_mins: Duration in minutes (must be > 0)
Note: This is not saved to preferences and will clear on reboot
Usage:
get freqset freq <frequency>
Parameters:
frequency: Frequency in MHz
Default: 869.525
Note: Requires reboot to apply
Serial Only: set freq <frequency>
Usage:
get radio.rxgainset radio.rxgain <state>
Parameters:
state:on|off
Default: on
Temporary Note: If you upgraded from an older version to 1.14.1 without erasing flash, this setting is off because of #2118
Usage:
get radio.fem.rxgainset radio.fem.rxgain <state>
Parameters:
state:on|off
Default: Board-specific
Note: This controls an external front-end-module RX gain/LNA path when the board supports it, such as the Heltec V4.3 KCT8103L FEM. It is separate from radio.rxgain, which controls the LoRa radio chip's internal boosted RX gain mode. Unsupported boards return an error.
Usage:
get nameset name <name>
Parameters:
name: Node name
Set by build flag: ADVERT_NAME
Default: Varies by board
Note: Max length varies. If a location is set, the max length is 24 bytes; 32 otherwise. Emoji and unicode characters may take more than one byte.
Usage:
get latset lat <degrees>
Set by build flag: ADVERT_LAT
Default: 0
Parameters:
degrees: Latitude in degrees
Usage:
get lonset lon <degrees>
Set by build flag: ADVERT_LON
Default: 0
Parameters:
degrees: Longitude in degrees
Usage:
get prv.keyset prv.key <private_key>
Parameters:
private_key: Private key in hex format (64 hex characters)
Serial Only:
get prv.key: Yesset prv.key: No
Note: Requires reboot to take effect after setting
Usage:
password <new_password>
Parameters:
new_password: New admin password
Set by build flag: ADMIN_PASSWORD
Default: password
Note: Command reply echoes the updated password for confirmation.
Note: Any node using this password will be added to the admin ACL list.
Usage:
get guest.passwordset guest.password <password>
Parameters:
password: Guest password
Set by build flag: ROOM_PASSWORD (Room Server only)
Default: <blank>
Usage:
get owner.infoset owner.info <text>
Parameters:
text: Owner information text
Default: <blank>
Note: | characters are translated to newlines
Note: Requires firmware 1.12+
Usage:
get adc.multiplierset adc.multiplier <value>
Parameters:
value: ADC multiplier (0.0-10.0)
Default: 0.0 (value defined by board)
Note: Returns "Error: unsupported by this board" if hardware doesn't support it
The low-battery boot guard prevents supported battery-powered boards from continuing into full firmware startup while the measured battery voltage is still too low. This helps avoid repeated brownout/reset loops after a deeply discharged battery is connected to a charger.
These commands are available on Repeater, GPS tracker / Sensor, and Room Server builds that use the normal MeshCore CLI. KISS modem, companion radio, and secure chat builds use the build-time defaults.
Usage:
get boot.lowbat.guardset boot.lowbat.guard <state>
Parameters:
state:on|off
Default: on
Usage:
get boot.lowbat.mvset boot.lowbat.mv <millivolts>
Parameters:
millivolts:0or2500-6000
Default: 3300
Note: 0 disables the threshold, but set boot.lowbat.guard off is clearer.
Usage:
get boot.lowbat.valid_minset boot.lowbat.valid_min <millivolts>
Parameters:
millivolts:0-6000
Default: 2500
Note: Readings below this value are treated as invalid or unsupported and do not block boot.
Usage:
get boot.lowbat.retryset boot.lowbat.retry <seconds>
Parameters:
seconds:5-3600
Default: 60
Note: Changes are stored in node preferences and apply on the next boot after preferences are loaded.
The runtime low-battery guard protects battery-powered Repeater, GPS tracker / Sensor, and Room Server builds after normal startup. When enabled, the firmware periodically checks battery voltage from the main loop. If the reading is valid, the board is not externally powered, and voltage is below the runtime threshold, the node sleeps before continuing work.
This is separate from the boot guard. The boot guard prevents brownout boot loops; the runtime guard prevents a running node from draining the battery too far.
Usage:
get runtime.lowbat.guardset runtime.lowbat.guard <state>
Parameters:
state:on|off
Default: on
Usage:
get runtime.lowbat.mvset runtime.lowbat.mv <millivolts>
Parameters:
millivolts:0or2500-6000
Default: 3300
Note: 0 disables the threshold, but set runtime.lowbat.guard off is clearer.
Usage:
get runtime.lowbat.warnset runtime.lowbat.warn <millivolts>
Parameters:
millivolts:0-6000
Default: 3500
Note: The warning threshold is stored for status/telemetry use. The current guard action is controlled by runtime.lowbat.mv.
Usage:
get runtime.lowbat.valid_minset runtime.lowbat.valid_min <millivolts>
Parameters:
millivolts:0-6000
Default: 2500
Usage:
get runtime.lowbat.retryset runtime.lowbat.retry <seconds>
Parameters:
seconds:5-86400
Default: 1800
Usage: get public.key
Usage: ver
Usage: get firmware.target
This is the target name used by ota.check and ota.update to find a matching entry in the online OTA manifest.
Usage: get role
Usage:
powersavingpowersaving onpowersaving off
Parameters:
on: enable power savingoff: disable power saving
Default: off
Note: Power saving is repeater-only. When enabled, sleep is attempted only when there is no pending outbound work. Bridge/WiFi modes prevent sleep because the bridge must stay awake.
On ESP32 boards with supported LoRa DIO1 wake wiring, sleep can wake by LoRa RX or by timer. On nRF52 boards sleep is event/interrupt driven and the seconds parameter is ignored by the board sleep implementation.
Usage:
get repeatset repeat <state>
Parameters:
state:on|off
Default: on
Usage:
get malformed.dropset malformed.drop onset malformed.drop off
Parameters:
on: drop malformed decryptable default-public-channel group text before retransmissionoff: leave forwarding behavior unchanged
Default: on
Note: This only applies to human-readable default public group text that the repeater can decrypt and inspect. Binary channel datagrams, raw/custom payloads, requests, responses, private/encrypted packets that cannot be inspected and unknown/future packet types are still handled by the normal forwarding rules. Existing saved preferences are preserved; use set malformed.drop off to disable this behavior on a repeater.
Usage:
get path.hash.modeset path.hash.mode <value>
Parameters:
value: Path hash size (0-2)0: 1 Byte hash size (256 unique ids)[64 max flood]1: 2 Byte hash size (65,536 unique ids)[32 max flood]2: 3 Byte hash size (16,777,216 unique ids)[21 max flood]3: DO NOT USE (Reserved)
Default: 0
Note: the 'path.hash.mode' sets the low-level ID/hash encoding size used when the repeater adverts. This setting has no impact on what packet ID/hash size this repeater forwards, all sizes should be forwarded on firmware >= 1.14. This feature was added in firmware 1.14
Temporary Note: adverts with ID/hash sizes of 2 or 3 bytes may have limited flood propagation in your network while this feature is new as v1.13.0 firmware and older will drop packets with multibyte path ID/hashes as only 1-byte hashes are supported. Consider your install base of firmware >=1.14 has reached a criticality for effective network flooding before implementing higher ID/hash sizes.
Usage:
get loop.detectset loop.detect <state>
Parameters:
state:off: no loop detection is performedminimal: packets are dropped if repeater's ID/hash appears 4 or more times (1-byte), 2 or more (2-byte), 1 or more (3-byte)moderate: packets are dropped if repeater's ID/hash appears 2 or more times (1-byte), 1 or more (2-byte), 1 or more (3-byte)strict: packets are dropped if repeater's ID/hash appears 1 or more times (1-byte), 1 or more (2-byte), 1 or more (3-byte)
Default: off
Note: When it is enabled, repeaters will now reject flood packets which look like they are in a loop. This has been happening recently in some meshes when there is just a single 'bad' repeater firmware out there (probably some forked or custom firmware). If the payload is messed with, then forwarded, the same packet ends up causing a packet storm, repeated up to the max 64 hops. This feature was added in firmware 1.14
Example: If preference is loop.detect minimal, and a 1-byte path size packet is received, the repeater will see if its own ID/hash is already in the path. If it's already encoded 4 times, it will reject the packet. If the packet uses 2-byte path size, and repeater's own ID/hash is already encoded 2 times, it rejects. If the packet uses 3-byte path size, and the repeater's own ID/hash is already encoded 1 time, it rejects.
Usage:
get txdelayset txdelay <value>
Parameters:
value: Transmit delay factor (0-2)
Default: 0.5
Dense mesh behavior: This delay is applied before a flood packet is queued for transmit. When txdelay is above 0, MeshCoreNG also adds a small stable per-node offset derived from the node identity. This keeps nearby repeaters from becoming synchronized while preserving the existing random txdelay spread.
set txdelay 0 keeps the previous zero-delay behavior and does not add the node offset. CAD retry is separate: it happens after the radio detects a busy channel, with the current retry window of 120-360 ms.
MeshCoreNG also performs duplicate-hearing suppression for queued flood retransmits. If a repeater hears two duplicate forwards of the same packet before its own scheduled retransmit fires, that pending retransmit is cancelled. The runtime toggle is flood.dup.suppress; the compile-time threshold is MESH_DUP_SUPPRESS_THRESHOLD.
Usage:
get flood.node.delayset flood.node.delay <state>
Aliases:
get node.delayset node.delay <state>
Parameters:
state:on|off
Default: on
Note: When enabled, a small stable delay derived from the node identity is added to flood retransmits. This helps nearby repeaters avoid retransmitting at the same moment. Turning it off keeps only the random txdelay behavior.
Usage:
get flood.dup.suppressset flood.dup.suppress <state>
Aliases:
get dup.suppressset dup.suppress <state>
Parameters:
state:on|off
Default: on
Note: When enabled, a queued flood retransmit can be cancelled if this node hears enough duplicate forwards before its own transmit slot. This reduces redundant flood traffic in dense meshes without changing the packet protocol.
Note: When multiple nearby repeaters all hear the same flood packet, each waits a random amount of time before retransmitting to avoid simultaneous collisions. This factor scales the size of that random window. Higher values reduce collision risk at the cost of added latency. 0 disables the window entirely.
Usage:
get direct.txdelayset direct.txdelay <value>
Parameters:
value: Direct transmit delay factor (0-2)
Default: 0.2
Note: Same collision-avoidance random window as txdelay, but applied to direct (non-flood, routed) traffic. The default is lower because direct packets are addressed to a specific next hop, so far fewer nodes compete to retransmit them.
Usage:
get rxdelayset rxdelay <value>
Parameters:
value: Receive delay base (0-20)
Default: 0.0
Note: When enabled, repeaters that received a flood packet with a weak signal are held in a delay queue before processing, while those that received it with a strong signal process it immediately. This gives strong-signal paths forwarding priority. By the time weak-signal nodes process their copy, the packet may have already propagated and will be suppressed as a duplicate, reducing redundant retransmissions.
Usage:
get dutycycleset dutycycle <value>
Parameters:
value: Duty cycle percentage (1-100)
Default: 50% (equivalent to airtime factor 1.0)
Examples:
set dutycycle 100— no duty cycle limitset dutycycle 50— 50% duty cycle (default)set dutycycle 10— 10% duty cycleset dutycycle 1— 1% duty cycle (strictest EU requirement)
Note: Added in firmware v1.15.0
Deprecated as of firmware v1.15.0. Use
get/set dutycycleinstead.
Usage:
get afset af <value>
Parameters:
value: Airtime factor (0-9). After each transmission, the repeater enforces a silent period of approximately the on-air transmission time multiplied by the value. This results in a long-term duty cycle of roughly 1 divided by (1 plus the value). For example:af = 1→ ~50% dutyaf = 2→ ~33% dutyaf = 3→ ~25% dutyaf = 9→ ~10% duty You are responsible for choosing a value that is appropriate for your jurisdiction and channel plan (for example EU 868 Mhz 10% duty cycle regulation).
Default: 1.0
Usage:
get int.threshset int.thresh <value>
Parameters:
value: Interference threshold value
Default: 1 (Repeater) - 0 (other roles)
Usage:
get agc.reset.intervalset agc.reset.interval <value>
Parameters:
value: Interval in seconds rounded down to a multiple of 4 (17 becomes 16). 0 to disable.
Default: 0.0
Usage:
get multi.acksset multi.acks <state>
Parameters:
state:0(disable) or1(enable)
Default: 0
Usage:
get flood.advert.intervalset flood.advert.interval <hours>
Parameters:
hours: Interval in hours (3-168)
Default: 0
Usage:
get flood.advert.baseset flood.advert.base <value>
Parameters:
value: Probability base from0to1. Repeater forwarding probability isvalue^(hops - 1).
Simple start advice:
0: do not forward received flood adverts.0.308: dense mesh default; quickly reduces advert noise as hop count grows.1: forward every flood advert, matching unrestricted forwarding.
Default: 0.308 (Repeater)
Usage:
get flood.relay.probset flood.relay.prob <value>
Parameters:
value: Integer probability from0to255, applied to eligible flood forwarding after normal deny, loop, max-hop, and advert-base checks.
Simple start advice:
0: suppress eligible flood forwarding.128: forward about half of eligible flood packets.255: normal eligible flood forwarding.
Default: 255
Usage:
get flood.dynamic.enableset flood.dynamic.enable onset flood.dynamic.enable off
Note: In v2 this is telemetry/recommendation mode only. It does not automatically change advert interval, hop limits, or rebroadcast delay.
Default: off
Usage:
get advert.intervalset advert.interval <minutes>
Parameters:
minutes: Interval in minutes rounded down to the nearest multiple of 2 (61 becomes 60) (60-240)
Default: 0
Usage:
get flood.maxset flood.max <value>
Parameters:
value: Maximum flood hop count (0-64)
Default: 64
Usage:
get flood.max.unscopedset flood.max.unscoped <value>
Parameters:
value: Maximum flood hop count (0-64) for a packet without a scope (no region set)
Default: 64 - (0xFF indicates it hasn't been set, will track flood.max until it is.)
Note: An alternative to region denyf *, setting flood.max.unscoped to a lower value such as 3 would allow for local unscoped messages to propagate, while preventing noisy neighbors from flooding a local region.
Usage:
get flood.max.advertset flood.max.advert <value>
Parameters:
value: Maximum flood hop count (0-64) for an advert packet
Default: 8
Usage:
setperm <pubkey> <permissions>
Parameters:
pubkey: Companion public keypermissions:0: Guest1: Read-only2: Read-write3: Admin
Note: Removes the entry when permissions is omitted
Usage:
get acl
Serial Only: Yes
Usage:
get allow.read.onlyset allow.read.only <state>
Parameters:
state:on(enable) oroff(disable)
Default: off
Regions form a local forwarding hierarchy. They let repeaters decide which flood scopes they should carry, so dense meshes can keep local traffic local and reserve wide-area forwarding for repeaters that are meant to act as backbone nodes.
Example hierarchy:
eu
└── nl
├── nl-nh
│ ├── nl-nh-sbc
│ └── nl-nh-bov
└── nl-hhw
region allowf <name> allows flood forwarding for that region on this repeater. region denyf <name> blocks flood forwarding for that region on this repeater. Use region home <name> to mark the node's own most specific region.
Parent-child regions express scope inheritance: nl-nh-bov belongs inside nl-nh, which belongs inside nl. Forwarding flags are still explicit per region, so allow the parent, child, or both based on the repeater's intended role.
Usage:
region loadregion load <name> [flood_flag]
Parameters:
name: A name of a region.*represents the wildcard region
Note: flood_flag: Optional F to allow flooding
Note: Indentation creates parent-child relationships (max 8 levels)
Note: region load with an empty name will not work remotely (it's interactive)
Usage:
region save
Purpose: Persist the current region map, forwarding flags, home region and default region to local storage.
Behavior: Region changes are RAM-only until saved. Run this after a working configuration is confirmed.
Usage:
region allowf <name>
Parameters:
name: Region name (or*for wildcard)
Purpose: Allow this node to forward flood packets for the selected region.
Example:
region allowf nl-nh-bov
Note: Setting on wildcard * allows packets without region transport codes
Usage:
region denyf <name>
Parameters:
name: Region name (or*for wildcard)
Purpose: Stop this node from forwarding flood packets for the selected region.
Example:
region denyf eu
Note: Setting on wildcard * drops packets without region transport codes
Usage:
region get <name>
Parameters:
name: Region name (or*for wildcard)
Usage:
region homeregion home <name>
Parameters:
name: Region name
Purpose: Mark this node's own region. Use the most specific correct region for the repeater's physical location.
Example:
region home nl-nh-bov
Usage:
region defaultregion default {name|<null>}
Parameters:
name: Region name, or to reset/clear
Usage:
region put <name> [parent_name]
Parameters:
name: Region nameparent_name: Parent region name (optional, defaults to wildcard)
Purpose: Add a region to the hierarchy. Parent-child relationships make the tree readable for operators and tools.
Examples:
region put euregion put nl euregion put nl-nh nlregion put nl-nh-bov nl-nh
Usage:
region def <token> [<token> ...]
Parameters (tokens): Space-separated. A logical cursor starts at the wildcard *.
name— Createnameas a child of the current cursor (equivalent toregion put namewith the cursor as parent). Cursor moves toname.name|jump(orname,jump) — Createnameas a child of the current cursor, then move the cursor tojump(must already exist on the node, or have been created earlier in this command).jumpis not the parent ofname; use this form to pop back up and start another branch.
Behavior: Each created region defaults to flood-allowed (same as region put). The reply is the resulting region tree (same format as bare region); review it before running region save to persist. On error, the reply is Err - ... and any regions placed before the failure remain on the node, just like a partial chain of region put.
Existing regions: region def does not clear the existing tree — if a name already exists, its parent is updated to the current cursor; otherwise a new region is created. To start from scratch, region remove the unwanted regions first.
Limits: Repeater serial accepts one line up to 160 characters. For larger trees, split across multiple region def commands; the cursor resets to * between commands, so lead the next command with child|ancestor to reposition. Each token splits at most once on | — region def a|b|c|d is not a flat-list shorthand; see the flat-list example below.
Example — linear chain (each token becomes a child of the previous):
region def a b c d e
region save
Example — branched tree (equivalent to region put a, region put b a, region put c b, region put d c, region put e b, region put f e):
region def a b c d|b e f
region save
Example — error and partial state:
region def a b c|nope d
The reply is Err - unknown jump: nope. a, b, and c were placed before the failure; d was not. Run region to inspect, then re-run with a corrected jump or repair with region remove / region put.
Example — flat list (each region a child of *). Use |* after each token to pop the cursor back to the root before the next token:
region def a|* b|* c|* d|* e|* f
region save
Usage:
region remove <name>
Parameters:
name: Region name
Note: Must remove all child regions before the region can be removed
Usage:
region list <filter>
Serial Only: Yes
Parameters:
filter:allowed|denied
Note: Requires firmware 1.12+
Usage:
regionregion tree
Purpose: Show the configured region hierarchy. F means flood forwarding is allowed for that region. ^ marks the home region.
Serial Only: For firmware older than 1.12.0
Usage:
region put eu
region put nl eu
region put nl-nh nl
region put nl-hhw nl
region put nl-nh-sbc nl-nh
region put nl-nh-bov nl-nh
region allowf eu
region allowf nl
region allowf nl-nh
region allowf nl-hhw
region allowf nl-nh-sbc
region allowf nl-nh-bov
region home nl-nh-bov
region tree
region save
Operational note: Local repeaters can deny broad regions such as eu or nl to save airtime. Backbone repeaters can intentionally allow broader regions to connect local meshes.
The Dutch region database is a read-only flash lookup table generated from MeshWiki. It does not consume heap memory and does not change the editable region map until a client chooses to apply a returned code. It is enabled by the WITH_DUTCH_REGION_DB build flag. See Dutch Region Database for the generated format and maintainer workflow.
Usage:
regiondbregiondb info
Example response:
nl-db entries=2484 provinces=12 codes=1611 rev=100 modified=2026-03-23T14:07:28Z
Usage:
regiondb provinces
Example response:
gr:197,fr:413,dr:225,ov:178,fl:19,ge:330,ut:104,nh:238,zh:184,ze:126,nb:279,li:191
Usage:
regiondb find <prefix> [start_index]
Example:
regiondb find gron
Example response:
45 Groningen [gr] nl-grq +1
Use start_index to continue searching after a previous match.
Usage:
regiondb get <index>
Example response:
45 Groningen [gr] nl-grq,nl-gr-grq
Usage:
regiondb code <code_id>
Example response:
1 nl-grq
Note: regiondb is lookup-only. Use the normal region commands to change the runtime region map.
Example 1: Using F Flag with Named Public Region
region load
#Europe F
<blank line to end region load>
region save
Explanation:
- Creates a region named
#Europewith flooding enabled - Packets from this region will be flooded to other nodes
Example 2: Using Wildcard with F Flag
region load
* F
<blank line to end region load>
region save
Explanation:
- Creates a wildcard region
*with flooding enabled - Enables flooding for all regions automatically
- Applies only to packets without transport codes
Example 3: Using Wildcard Without F Flag
region load
*
<blank line to end region load>
region save
Explanation:
- Creates a wildcard region
*without flooding - This region exists but doesn't affect packet distribution
- Used as a default/empty region
Example 4: Nested Public Region with F Flag
region load
#Europe F
#UK
#London
#Manchester
#France
#Paris
#Lyon
<blank line to end region load>
region save
Explanation:
- Creates
#Europeregion with flooding enabled - Adds nested child regions (
#UK,#France) - The nesting records the intended hierarchy; set
For useregion allowfon child regions that should also forward flood traffic
Example 5: Wildcard with Nested Public Regions
region load
* F
#NorthAmerica
#USA
#NewYork
#California
#Canada
#Ontario
#Quebec
<blank line to end region load>
region save
Explanation:
- Creates wildcard region
*with flooding enabled - Adds nested
#NorthAmericahierarchy - Enables flooding for all child regions automatically
- Useful for global networks with specific regional rules
Usage:
gpsgps <state>
Parameters:
state:on|off
Default: off
Note: Output format:
offwhen the GPS hardware is disabledon, {active|deactivated}, {fix|no fix}, {sat count} satswhen the GPS hardware is enabled
Usage:
gps sync
Usage:
gps setloc
Usage:
gps advertgps advert <policy>
Parameters:
policy:none|share|prefsnone: don't include location in advertsshare: share gps location (from SensorManager)prefs: location stored in node's lat and lon settings
Default: prefs
Usage: sensor list [start]
Parameters:
start: Optional starting index (defaults to 0)
Note: Output format: <var_name>=<value>\n
Usage:
sensor get <key>sensor set <key> <value>
Parameters:
key: Sensor setting namevalue: The value to set the sensor to
Four bridge types are available, each compiled in separately:
| Bridge | Build flag | Platform | Use case |
|---|---|---|---|
| RS232 | -D WITH_RS232_BRIDGE=Serial2 |
All | Wired transport to another local device |
| ESPNow | -D WITH_ESPNOW_BRIDGE=1 |
ESP32 | Local wireless transport between ESP32 boards |
| TCP | -D WITH_TCP_BRIDGE=1 |
ESP32 | Optional controlled backhaul between selected RF deployments |
| BLE | -D WITH_BLE_BRIDGE=1 |
nRF52/Bluefruit, ESP32 BLE | Short-range wireless bridge between BLE-capable repeaters |
| TCP+BLE | -D WITH_TCP_BRIDGE=1 -D WITH_BLE_BRIDGE=1 |
Selected 8MB/16MB ESP32 WiFi+BLE | Combined controlled TCP backhaul and short-range BLE bridge transport |
Bridge support is optional and defaults to disabled. MeshCoreNG remains RF-first; bridge transports are intended for controlled deployments such as isolated RF islands, remote RF gateways, temporary backhaul, research setups, and private infrastructure. They are not intended for worldwide uncontrolled flooding or unrestricted packet replication.
Operators are responsible for choosing what should be bridged and for avoiding unnecessary rebroadcast into RF networks. Prefer scoped, private bridge groups and preserve RF locality where possible.
The TCP bridge connects bridge-capable repeaters to a selected bridge server. Use it to transport selected traffic between controlled MeshCore RF deployments. A server is required; see tools/tcp_bridge_server.py.
1. Start the server (VPS, Raspberry Pi, or PC):
python3 tools/tcp_bridge_server.py --port 42002. Configure each intended bridge repeater via CLI:
set wifi.ssid YourWiFi
set wifi.password secret123
set bridge.server yourserver.example.com
set bridge.port 4200
set bridge.password optionalSecret
set bridge.enabled on
Upgrade note: MeshCoreNG keeps compatibility with the TCP bridge preferences used before the large merge from the original MeshCore v1.16.0 firmware. When upgrading from older MeshCoreNG bridge builds, saved WiFi and TCP bridge settings are migrated from the legacy layout automatically. If a node was already booted with a build that saved shifted/empty values, re-enter wifi.ssid, wifi.password, bridge.server, bridge.port, optionally bridge.password, and bridge.enabled once.
3. Available firmware variants (compile with PlatformIO):
Heltec_v3_repeater_bridge_tcpheltec_v3_433_repeater_bridge_tcpHeltec_WSL3_repeater_bridge_tcpheltec_v4_repeater_bridge_tcpTbeam_SX1262_repeater_bridge_tcpTbeam_SX1276_repeater_bridge_tcpT_Beam_S3_Supreme_SX1262_repeater_bridge_tcpLilyGo_TBeam_1W_repeater_bridge_tcpLilyGo_T3S3_sx1262_repeater_bridge_tcp- (and many others, see the
variants/*/platformio.inifiles)
Usage: get bridge.type
Usage:
get bridge.enabledset bridge.enabled <state>
Parameters:
state:on|off
Default: off
Usage:
get bridge.delayset bridge.delay <ms>
Parameters:
ms: Delay in milliseconds (0-10000)
Default: 500
Usage:
get bridge.sourceset bridge.source <source>
Parameters:
source:logRx: bridges received packetslogTx: bridges transmitted packetsboth: bridges received and transmitted packets
Default: logTx
Usage:
get bridge.rfset bridge.rf <state>
Parameters:
state:off: do not put bridge-originated packets on RFonorflood: allow bridge-originated flood packets through the normal repeater forwarding pathlocalorttl1: inject bridge-originated packets once on local RF only
In on/flood mode, flood packets received from the bridge may be forwarded on LoRa RF by the normal repeater forwarding path. Region rules, duplicate checks, loop detection, hop limits, relay probability, retransmit delay, and the normal RF TX queue still apply.
In local/ttl1 mode, packets received from the bridge are transmitted once by this node on local RF. Flood packets are marked with a full path before transmit so other repeaters should process but not re-flood them. Direct packets are transmitted as zero-hop local packets so nearby matching clients can receive them without creating a routed multi-hop bridge loop.
Default: off
Usage:
get bridge.exportset bridge.export <mode>
Parameters:
mode:all: export all packets selected bybridge.sourceflood: export only flood packets selected bybridge.sourcechannels: export only channel/group flood packets selected bybridge.sourcemessages: export DM/chat-related packets and channel/group packets selected bybridge.source
bridge.export is applied after bridge.source. This lets the bridge export RF RX packets independently from the local RF retransmit decision without adding a TCP bridge hop to the MeshCore packet path.
Default: all
Usage:
get bridge.export.maxhopsset bridge.export.maxhops <hops>
Parameters:
hops: Maximum RF path hash count to export, from0to63.0means unlimited.
This is useful for RF island bridges where channel packets heard from several RF hops away should still cross the TCP bridge, but very old floods should stay local.
Default: 0
Usage:
get bridge.tcp.ttlset bridge.tcp.ttl <ttl>
Parameters:
ttl: TCP bridge envelope TTL, from1to8.
The TCP bridge v2 envelope carries bridge metadata such as origin bridge ID and TTL outside the MeshCore packet. The MeshCore route/path is not modified.
Default: 2
Usage:
get bridge.profileset bridge.profile <profile>
Parameters:
profile:default: conservative defaults (bridge.source logTx,bridge.rf off, export all, unlimited hops, TCP TTL 2)island: RF-island bridge preset (bridge.source both,bridge.rf local, export message packets up to 4 RF hops, TCP TTL 2)repeater: transport-repeater preset (bridge.source both,bridge.rf on, export all packets, unlimited export hops, TCP TTL 2)
get bridge.profile returns the name of the last profile applied (default, island, or repeater). It reflects what was set with set bridge.profile, not the current live values of the individual settings. If individual settings have been changed since the last set bridge.profile, get bridge.profile still returns the last profile name.
The island profile is intended for controlled RF islands, for example one bridge node on SF7 and another on SF8. It exports eligible RF RX packets to TCP even when the local repeater policy decides not to retransmit them on RF, and injects packets from TCP once on the receiving RF island.
The repeater profile is intended for controlled deployments where the TCP bridge should behave as much like a repeater/backhaul as possible. It exports every packet selected by RF RX/TX and lets bridge-originated flood packets pass through the normal RF repeater forwarding path on the receiving side.
MeshCoreNG includes tools/python_room_server.py, a bridge client that can act as a minimal room server from a PC, Raspberry Pi, or VPS.
Run the bridge server:
python3 tools/tcp_bridge_server.py --port 4200Run the Python room server:
python3 tools/python_room_server.py --server 127.0.0.1 --port 4200 \
--bridge-password bridgeSecret \
--name "Python Room" --password secretOn the bridge repeater, enable bridge RF forwarding:
set bridge.enabled on
set bridge.rf on
The Python room server stores its identity and recent posts in python_room_server_state.json by default. Keep that file if clients should keep recognizing the same room.
Usage:
get bridge.baudset bridge.baud <rate>
Parameters:
rate: Baud rate (9600,19200,38400,57600, or115200)
Default: 115200
RS232 bridge firmware can be used either through a USB-connected host script or as a direct wired UART bridge between two repeaters:
Repeater A TX -> Repeater B RX
Repeater A RX -> Repeater B TX
Repeater A GND -> Repeater B GND
Use 3.3V TTL UART levels. Do not connect true +/-12V RS232 directly to board pins.
For Seeed SenseCAP Solar, SenseCap_Solar_repeater_bridge_rs232 uses Serial1 on D6/D7:
D6 = TX = GNSS_TX
D7 = RX = GNSS_RX
Connect SenseCAP Solar repeaters as D6/TX -> D7/RX, D7/RX -> D6/TX, and GND -> GND. These pins are shared with the GNSS UART, so GNSS/GPS cannot use that UART at the same time.
Usage:
get bridge.channelset bridge.channel <channel>
Parameters:
channel: Channel number (1-14)
Usage:
get bridge.secretset bridge.secret <secret>
Parameters:
secret: ESP-NOW or BLE bridge secret, up to 15 characters
Default: Varies by board
Usage:
get wifi.ssidset wifi.ssid <ssid>
Parameters:
ssid: Name of the WiFi network the repeater should join, up to 31 characters
Note: Requires WITH_TCP_BRIDGE firmware build flag. Reboot to apply.
Usage:
set wifi.password <password>
Parameters:
password: WiFi network password, up to 63 characters
Note: get wifi.password always returns *** for security.
Usage:
get bridge.serverset bridge.server <host>
Parameters:
host: Hostname or IP address of the central TCP bridge server
Note: Requires WITH_TCP_BRIDGE firmware build flag.
Usage:
get bridge.portset bridge.port <port>
Parameters:
port: TCP port number (1–65535)
Default: 4200
Usage:
get bridge.passwordset bridge.password <password>
Parameters:
password: Optional TCP bridge server password, up to 63 characters
Note: get bridge.password always returns *** for security.
Usage:
get ntp.enabledset ntp.enabled <state>get ntp.serverset ntp.server <host>get ntp.intervalset ntp.interval <seconds>
Parameters:
state:on|offhost: NTP server hostname, defaultpool.ntp.orgseconds: refresh interval from 300 to 86400 seconds
When enabled, the TCP bridge syncs the firmware RTC after WiFi connects and refreshes it periodically while the bridge is running. get wifi.status shows NTP: synced, not synced, or disabled.
Usage:
get tcp.flood.limitset tcp.flood.limit <state>
Parameters:
state:on|off
Enable or disable TCP flood protection. When enabled, the bridge monitors incoming packet rate from the TCP connection and stops relaying packets when the configured threshold is exceeded within the time window. This prevents mass flooding of the mesh network via the TCP bridge.
Default: off
Note: See TCP Flood Protection for detailed information.
Usage:
get tcp.flood.maxset tcp.flood.max <value>
Parameters:
value: Maximum packets allowed in the time window (1–10000)
Configure the maximum number of packets allowed from the TCP bridge within the configured time window. When this limit is exceeded, additional packets are dropped until the time window expires.
Default: 100 packets
Usage:
get tcp.flood.windowset tcp.flood.window <value>
Parameters:
value: Time window in seconds (1–3600)
Configure the time window for TCP flood protection. The packet counter resets when this window expires.
Default: 600 seconds (10 minutes)
Example configuration:
set tcp.flood.limit on
set tcp.flood.max 200
set tcp.flood.window 300
This allows up to 200 packets per 5 minutes from the TCP bridge.
Usage: set tcp.flood.transport.max <value>
Configure the maximum number of transport/message packets (DMs, group messages, requests) allowed within the transport time window. This applies selective rate limiting to user-generated content while allowing control packets to flow.
Parameters:
value: Integer from1to10000, maximum transport packets in time window
Default: 20 packets
Recommended: 20 (allows ~20 DMs per 2 minutes)
Example:
set tcp.flood.transport.max 22
Usage: get tcp.flood.transport.max
Usage: set tcp.flood.transport.window <value>
Configure the time window in seconds for transport/message packet rate limiting.
Parameters:
value: Integer from1to3600seconds (1 second to 1 hour)
Default: 120 seconds (2 minutes)
Example:
set tcp.flood.transport.window 120
Usage: get tcp.flood.transport.window
Usage: set tcp.flood.control.max <value>
Configure the maximum number of control/admin packets (discovery, adverts, ACKs, traces) allowed within the control time window. Set to 0 to bypass flood protection for control packets (recommended).
Parameters:
value: Integer from0to10000(0= bypass, no limit on control packets)
Default: 20 packets
Recommended: 20 (same as transport), or 0 to bypass control packets
Example:
set tcp.flood.control.max 0 # Bypass control packets
or
set tcp.flood.control.max 500 # Limit to 500 control packets per window
Usage: get tcp.flood.control.max
Usage: set tcp.flood.control.window <value>
Configure the time window in seconds for control/admin packet rate limiting.
Parameters:
value: Integer from1to3600seconds (1 second to 1 hour)
Default: 120 seconds (2 minutes)
Example:
set tcp.flood.control.window 120
Usage: get tcp.flood.control.window
Example selective flood protection setup:
set tcp.flood.limit on # Enable flood protection
set tcp.flood.transport.max 20 # Limit transport (DM/group msg) to 20 per 2 min
set tcp.flood.transport.window 120
set tcp.flood.control.max 20 # Limit control packets to 20 per 2 min (or 0 to bypass)
set tcp.flood.control.window 120
This configuration prevents message spam while allowing network control packets to flow freely.
Usage: get bootloader.ver
Usage: get pwrmgt.support
Usage: get pwrmgt.source
Note: Returns an error on boards without power management support.
Usage: get pwrmgt.bootreason
Note: Returns an error on boards without power management support.
Usage: get pwrmgt.bootmv
Note: Returns an error on boards without power management support.