Merge pull request #424 from meshtastic/proto_cleanup

Proto cleanup
This commit is contained in:
Garth Vander Houwen 2022-09-30 10:48:03 -07:00 committed by GitHub
commit a5c0e92ad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 25 deletions

View file

@ -59,7 +59,7 @@ All bluetooth module config options are available in the python CLI. Example com
```shell title="Enable/Disable Bluetooth Module" ```shell title="Enable/Disable Bluetooth Module"
meshtastic --set bluetooth.enabled true meshtastic --set bluetooth.enabled true
meshtastic --set mqtt.enabled false meshtastic --set bluetooth.enabled false
``` ```
```shell title="Set a fixed pin" ```shell title="Set a fixed pin"

View file

@ -7,7 +7,7 @@ sidebar_label: Device
import Tabs from '@theme/Tabs'; import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem'; import TabItem from '@theme/TabItem';
The device config options are: Role, Serial Output, Debug Log, NTP Server and Factory Reset. Device config uses an admin message sending a `Config.Device` protobuf. The device config options are: Role, Serial Output, and Debug Log. Device config uses an admin message sending a `Config.Device` protobuf.
## Device Config Values ## Device Config Values
@ -18,10 +18,10 @@ Acceptable values:
| Value | Description | | Value | Description |
| :-------: | :---------------------------------------------------------------------------------------: | | :-------: | :---------------------------------------------------------------------------------------: |
| `Client` | Client (default) - App connected client. | | `CLIENT` | Client (default) - App connected client. |
| `ClientMute` | Client Mute - Same as a client except packets will not hop over this node, does not contribute to routing packets for mesh. | | `CLIENT_MUTE` | Client Mute - Same as a client except packets will not hop over this node, does not contribute to routing packets for mesh. |
| `Router` | Router - Mesh packets will prefer to be routed over this node. This node will not be used by client apps. The wifi/ble radios and the oled screen will be put to sleep. | | `ROUTER` | Router - Mesh packets will prefer to be routed over this node. This node will not be used by client apps. The wifi/ble radios and the oled screen will be put to sleep. |
| `RouterClient` | Router Client - Mesh packets will prefer to be routed over this node. The Router Client can be used as both a Router and an app connected Client. | | `ROUTER_CLIENT` | Router Client - Mesh packets will prefer to be routed over this node. The Router Client can be used as both a Router and an app connected Client. |
### Serial Console ### Serial Console
@ -34,11 +34,6 @@ Acceptable values: `true` or `false`
By default we turn off logging as soon as an API client connects Set this to true to leave the debug log outputting even when API is active. By default we turn off logging as soon as an API client connects Set this to true to leave the debug log outputting even when API is active.
### NTP Server
Acceptable value: `string`
NTP server to use if WiFi is conneced, defaults to `0.pool.ntp.org`
## Device Config Client Availability ## Device Config Client Availability
<Tabs <Tabs
@ -70,7 +65,7 @@ All device config options other than NTP Server are available on iOS, iPadOS and
All device config options are available in the python CLI. Example commands are below: All device config options are available in the python CLI. Example commands are below:
```shell title="Set the role to client" ```shell title="Set the role to client"
meshtastic --set device.role Client meshtastic --set device.role CLIENT
``` ```
```shell title="Disable serial console" ```shell title="Disable serial console"
@ -81,10 +76,6 @@ meshtastic --set device.serial_enabled false
meshtastic --set device.debug_log_enabled true meshtastic --set device.debug_log_enabled true
``` ```
```shell title="Factory reset your radio"
meshtastic --set device.factory_reset true
```
</TabItem> </TabItem>
<TabItem value="flasher"> <TabItem value="flasher">

View file

@ -141,8 +141,8 @@ meshtastic --set position.fixed_position false
``` ```
```shell title="Enable / Disable Smart position broadcast (Enabled by default)" ```shell title="Enable / Disable Smart position broadcast (Enabled by default)"
meshtastic --set position.broadcast_smart_enabled true meshtastic --set position.position_broadcast_smart_enabled true
meshtastic --set position.broadcast_smart_enabled false meshtastic --get position.position_broadcast_smart_enabled false
``` ```
```shell title="Set Position Broadcast Interval (Default of 0 is 15 minutes)" ```shell title="Set Position Broadcast Interval (Default of 0 is 15 minutes)"
@ -159,7 +159,7 @@ Include each flag desired separated by a single space.
::: :::
```shell title="Set / Unset Position Flags" ```shell title="Set / Unset Position Flags"
meshtastic --pos-fields ALTITUDE POS_ALTITUDE_MSL meshtastic --pos-fields ALTITUDE ALTITUDE_MSL
meshtastic --pos-fields UNSET meshtastic --pos-fields UNSET
``` ```

View file

@ -67,14 +67,21 @@ values={[
All User config options are available in the python CLI. Example commands are below: All User config options are available in the python CLI. Example commands are below:
| Setting | Acceptable Values | Default |
| :-----------: | :---------------: | :-----: |
| LongName | string | auto-generated |
| ShortName | string | auto-generated |
| IsLicensed | bool | `false` |
Please see instructions for [Enabling HAM License](/docs/software/python/python-uses#ham-radio-support) Please see instructions for [Enabling HAM License](/docs/software/python/python-uses#ham-radio-support)
```shell title="Set the LongName Value"
meshtastic --set-owner 'your node name'
```
```shell title="Set the ShortName Value"
meshtastic --set-owner-short 'NODE'
```
```shell title="Enable Ham Mode, set name to license, disable encryption"
meshtastic --set-ham 'CALLSIGN'
```
</TabItem> </TabItem>
<TabItem value="flasher"> <TabItem value="flasher">