mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Add get/set dutycycle command
We translate to af internally, it's easier to store and doesn't break stored prefs. Made get/set af command show deprecated, but it still works fine.
This commit is contained in:
parent
b47b85773d
commit
f6338430f8
3 changed files with 40 additions and 11 deletions
|
|
@ -419,15 +419,22 @@ This document provides an overview of CLI commands that can be sent to MeshCore
|
|||
|
||||
---
|
||||
|
||||
#### View or change the airtime factor (duty cycle limit)
|
||||
#### View or change the duty cycle limit
|
||||
**Usage:**
|
||||
- `get af`
|
||||
- `set af <value>`
|
||||
- `get dutycycle`
|
||||
- `set dutycycle <value>`
|
||||
|
||||
**Parameters:**
|
||||
- `value`: Airtime factor (0-9)
|
||||
- `value`: Duty cycle percentage (10-100)
|
||||
|
||||
**Default:** `1.0`
|
||||
**Default:** `50%` (equivalent to airtime factor 1.0)
|
||||
|
||||
**Examples:**
|
||||
- `set dutycycle 100` — no duty cycle limit
|
||||
- `set dutycycle 50` — 50% duty cycle (default)
|
||||
- `set dutycycle 10` — 10% duty cycle (strictest EU requirement)
|
||||
|
||||
> **Deprecated:** `get af` / `set af` still work but are deprecated in favour of `dutycycle`.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -28,9 +28,11 @@ set lon {longitude}
|
|||
Sets your advertisement map longitude. (decimal degrees)
|
||||
|
||||
```
|
||||
set af {air-time-factor}
|
||||
set dutycycle {percent}
|
||||
```
|
||||
Sets the transmit air-time-factor.
|
||||
Sets the transmit duty cycle limit (10-100%). Example: `set dutycycle 10` for 10%.
|
||||
|
||||
> **Deprecated:** `set af` still works but is deprecated in favour of `set dutycycle`.
|
||||
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue