2021-02-27 05:16:43 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
option java_package = "com.geeksville.mesh";
|
|
|
|
option java_outer_classname = "RadioConfigProtos";
|
|
|
|
option optimize_for = LITE_RUNTIME;
|
2021-05-24 00:31:38 +00:00
|
|
|
option go_package = "github.com/meshtastic/gomeshproto";
|
2021-02-27 05:16:43 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The frequency/regulatory region the user has selected.
|
|
|
|
* Note: In 1.0 builds (which must still be supported by the android app for a
|
|
|
|
* long time) this field will be unpopulated.
|
|
|
|
* If firmware is ever upgraded from an old 1.0ish build, the old
|
|
|
|
* MyNodeInfo.region string will be used to set UserPreferences.region and the
|
|
|
|
* old value will be no longer set.
|
|
|
|
*/
|
|
|
|
enum RegionCode {
|
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
Unset = 0;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
US = 1;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
EU433 = 2;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-15 00:56:34 +00:00
|
|
|
EU868 = 3;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
CN = 4;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
JP = 5;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
ANZ = 6;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
KR = 7;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
TW = 8;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-03-06 13:10:09 +00:00
|
|
|
RU = 9;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-15 00:58:16 +00:00
|
|
|
IN = 10;
|
2021-02-27 05:16:43 +00:00
|
|
|
|
|
|
|
/*
|
2022-02-21 07:48:42 +00:00
|
|
|
* TODO: REPLACE
|
2021-02-27 05:16:43 +00:00
|
|
|
*/
|
2022-02-27 05:15:47 +00:00
|
|
|
NZ865 = 11;
|
2022-02-27 04:11:56 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
TH = 12;
|
2021-02-27 05:16:43 +00:00
|
|
|
}
|
|
|
|
|
2022-02-27 17:51:01 +00:00
|
|
|
/*
|
|
|
|
* Defines the device's role on the Mesh network
|
|
|
|
* unset
|
2022-03-15 01:04:41 +00:00
|
|
|
* Behave normally.
|
2022-02-27 17:51:01 +00:00
|
|
|
* Router
|
|
|
|
* Functions as a router
|
|
|
|
*/
|
|
|
|
enum Role {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Default device role
|
|
|
|
*/
|
2022-02-27 17:55:15 +00:00
|
|
|
Default = 0;
|
2022-02-27 17:51:01 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Router device role
|
|
|
|
*/
|
|
|
|
Router = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Sets the charge control current of devices with a battery charger that can be
|
|
|
|
* configured. This is passed into the axp power management chip like on the tbeam.
|
|
|
|
*/
|
|
|
|
enum ChargeCurrent {
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MAUnset = 0;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA100 = 1;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA190 = 2;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA280 = 3;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA360 = 4;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA450 = 5;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA550 = 6;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA630 = 7;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA700 = 8;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA780 = 9;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA880 = 10;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA960 = 11;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA1000 = 12;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA1080 = 13;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA1160 = 14;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA1240 = 15;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-02-27 05:16:43 +00:00
|
|
|
MA1320 = 16;
|
|
|
|
}
|
|
|
|
|
2021-08-30 06:46:07 +00:00
|
|
|
/*
|
|
|
|
* How the GPS coordinates are displayed on the OLED screen.
|
|
|
|
*/
|
|
|
|
enum GpsCoordinateFormat {
|
|
|
|
|
|
|
|
/*
|
2021-11-30 19:45:01 +00:00
|
|
|
* GPS coordinates are displayed in the normal decimal degrees format:
|
2021-08-30 06:46:07 +00:00
|
|
|
* DD.DDDDDD DDD.DDDDDD
|
|
|
|
*/
|
|
|
|
GpsFormatDec = 0;
|
|
|
|
|
|
|
|
/*
|
2021-11-30 19:45:01 +00:00
|
|
|
* GPS coordinates are displayed in the degrees minutes seconds format:
|
2021-08-30 06:46:07 +00:00
|
|
|
* DD°MM'SS"C DDD°MM'SS"C, where C is the compass point representing the locations quadrant
|
|
|
|
*/
|
|
|
|
GpsFormatDMS = 1;
|
|
|
|
|
|
|
|
/*
|
2021-11-30 19:45:01 +00:00
|
|
|
* GPS coordinates are displayed in Universal Transverse Mercator format:
|
2021-08-30 06:46:07 +00:00
|
|
|
* ZZB EEEEEE NNNNNNN, where Z is zone, B is band, E is easting, N is northing
|
|
|
|
*/
|
|
|
|
GpsFormatUTM = 2;
|
|
|
|
|
|
|
|
/*
|
2021-11-30 19:45:01 +00:00
|
|
|
* GPS coordinates are displayed in Military Grid Reference System format:
|
|
|
|
* ZZB CD EEEEE NNNNN, where Z is zone, B is band, C is the east 100k square, D is the north 100k square,
|
2021-08-30 06:46:07 +00:00
|
|
|
* E is easting, N is northing
|
|
|
|
*/
|
|
|
|
GpsFormatMGRS = 3;
|
|
|
|
|
2021-09-04 05:15:20 +00:00
|
|
|
/*
|
|
|
|
* GPS coordinates are displayed in Open Location Code (aka Plus Codes).
|
|
|
|
*/
|
|
|
|
GpsFormatOLC = 4;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-09-04 05:15:20 +00:00
|
|
|
/*
|
|
|
|
* GPS coordinates are displayed in Ordnance Survey Grid Reference (the National Grid System of the UK).
|
|
|
|
* Format: AB EEEEE NNNNN, where A is the east 100k square, B is the north 100k square, E is the easting,
|
|
|
|
* N is the northing
|
|
|
|
*/
|
|
|
|
GpsFormatOSGR = 5;
|
2021-08-30 06:46:07 +00:00
|
|
|
}
|
|
|
|
|
2021-10-07 13:14:23 +00:00
|
|
|
/*
|
2021-11-30 19:45:01 +00:00
|
|
|
* Bit field of boolean configuration options, indicating which optional
|
2021-10-07 13:14:23 +00:00
|
|
|
* fields to include when assembling POSITION messages
|
|
|
|
* Longitude and latitude are always included (also time if GPS-synced)
|
|
|
|
* NOTE: the more fields are included, the larger the message will be -
|
|
|
|
* leading to longer airtime and a higher risk of packet loss
|
|
|
|
*/
|
|
|
|
enum PositionFlags {
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* Required for compilation
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
POS_UNDEFINED = 0x0000;
|
2021-10-07 13:14:23 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* Include an altitude value (if available)
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
POS_ALTITUDE = 0x0001;
|
2021-10-07 13:14:23 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* Altitude value is MSL
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
POS_ALT_MSL = 0x0002;
|
2021-10-07 13:14:23 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* Include geoidal separation
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
POS_GEO_SEP = 0x0004;
|
2021-10-07 13:14:23 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* Include the DOP value ; PDOP used by default, see below
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
POS_DOP = 0x0008;
|
2021-10-07 13:14:23 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* If POS_DOP set, send separate HDOP / VDOP values instead of PDOP
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
POS_HVDOP = 0x0010;
|
2021-10-07 13:14:23 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* Include battery level
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
POS_BATTERY = 0x0020;
|
2021-10-07 13:14:23 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* Include number of "satellites in view"
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
POS_SATINVIEW = 0x0040;
|
2021-10-07 13:14:23 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* Include a sequence number incremented per packet
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
POS_SEQ_NOS = 0x0080;
|
2021-10-07 13:14:23 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* Include positional timestamp (from GPS solution)
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
POS_TIMESTAMP = 0x0100;
|
2021-10-07 13:14:23 +00:00
|
|
|
}
|
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-01-13 13:14:28 +00:00
|
|
|
enum InputEventChar {
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-01-18 22:32:44 +00:00
|
|
|
KEY_NONE = 0;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-01-18 22:32:44 +00:00
|
|
|
KEY_UP = 17;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-01-18 22:32:44 +00:00
|
|
|
KEY_DOWN = 18;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-01-18 22:32:44 +00:00
|
|
|
KEY_LEFT = 19;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-01-18 22:32:44 +00:00
|
|
|
KEY_RIGHT = 20;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* '\n'
|
|
|
|
*/
|
2022-01-18 22:32:44 +00:00
|
|
|
KEY_SELECT = 10;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-01-18 22:32:44 +00:00
|
|
|
KEY_BACK = 27;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-01-18 22:32:44 +00:00
|
|
|
KEY_CANCEL = 24;
|
2022-01-13 13:14:28 +00:00
|
|
|
}
|
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* The entire set of user settable/readable settings for our radio device.
|
|
|
|
* Includes both the current channel settings and any preferences the user has
|
|
|
|
* set for behavior of their node
|
|
|
|
*/
|
|
|
|
message RadioConfig {
|
|
|
|
|
|
|
|
/*
|
2022-03-09 22:23:22 +00:00
|
|
|
* See [software design](/docs/software/other/sw-design) for more information on these preferences
|
2021-02-27 05:16:43 +00:00
|
|
|
*/
|
|
|
|
message UserPreferences {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* We should send our position this often (but only if it has changed significantly)
|
|
|
|
* Defaults to 15 minutes
|
|
|
|
*/
|
|
|
|
uint32 position_broadcast_secs = 1;
|
|
|
|
|
2021-11-26 20:13:12 +00:00
|
|
|
/*
|
|
|
|
* We should send our position this often (but only if it has changed significantly)
|
|
|
|
*/
|
2022-03-15 01:04:41 +00:00
|
|
|
bool position_broadcast_smart_disabled = 17;
|
2021-11-26 20:13:12 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Send our owner info at least this often (also we always send once at boot - to rejoin the mesh)
|
|
|
|
*/
|
|
|
|
uint32 send_owner_interval = 2;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* If we miss this many owner messages from a node, we declare the node
|
|
|
|
* offline (defaults to 3 - to allow for some lost packets) (FIXME not yet used)
|
|
|
|
* uint32 num_missed_to_fail = 3;
|
2022-02-21 07:48:42 +00:00
|
|
|
TODO: REMOVE/INTEGRATE
|
2021-02-27 05:16:43 +00:00
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Power management state machine option.
|
2022-03-09 22:23:22 +00:00
|
|
|
* See [power management](/docs/software/other/power) for details.
|
2021-02-27 05:16:43 +00:00
|
|
|
* 0 for default of 1 minute
|
|
|
|
*/
|
|
|
|
uint32 wait_bluetooth_secs = 4;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Power management state machine option.
|
2022-03-09 22:23:22 +00:00
|
|
|
* See [power management](/docs/software/other/power) for details.
|
2021-02-27 05:16:43 +00:00
|
|
|
* 0 for default of one minute
|
|
|
|
*/
|
|
|
|
uint32 screen_on_secs = 5;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Power management state machine option.
|
2022-03-09 22:23:22 +00:00
|
|
|
* See [power management](/docs/software/other/power) for details.
|
2021-02-27 05:16:43 +00:00
|
|
|
* 0 for default of 15 minutes
|
2021-05-03 07:38:01 +00:00
|
|
|
* IMPORTANT NOTE FOR DEVICE CLIENTS: YOU MUST SEND SOME SORT OF PACKET TO THE PHONE AT LEAST THIS OFTEN OR THE DEVICE WILL DECIDE YOU ARE GONE!
|
2021-02-27 05:16:43 +00:00
|
|
|
*/
|
|
|
|
uint32 phone_timeout_secs = 6;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Power management state machine option.
|
2022-03-09 22:23:22 +00:00
|
|
|
* See [power management](/docs/software/other/power) for details.
|
2021-02-27 05:16:43 +00:00
|
|
|
* 0 for default of two hours, MAXUINT for disabled
|
|
|
|
*/
|
|
|
|
uint32 phone_sds_timeout_sec = 7;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Power management state machine option.
|
2022-03-09 22:23:22 +00:00
|
|
|
* See [power management](/docs/software/other/power) for details.
|
2021-02-27 05:16:43 +00:00
|
|
|
* 0 for default of two hours, MAXUINT for disabled
|
|
|
|
*/
|
|
|
|
uint32 mesh_sds_timeout_secs = 8;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Power management state machine option.
|
2022-03-09 22:23:22 +00:00
|
|
|
* See [power management](/docs/software/other/power) for details.
|
2021-02-27 05:16:43 +00:00
|
|
|
* 0 for default of one year
|
|
|
|
*/
|
|
|
|
uint32 sds_secs = 9;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Power management state machine option.
|
2022-03-09 22:23:22 +00:00
|
|
|
* See [power management](/docs/software/other/power) for details.
|
2021-02-27 05:16:43 +00:00
|
|
|
* 0 for default of 3600
|
|
|
|
*/
|
|
|
|
uint32 ls_secs = 10;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Power management state machine option.
|
2022-03-09 22:23:22 +00:00
|
|
|
* See [power management](/docs/software/other/power) for details.
|
2021-02-27 05:16:43 +00:00
|
|
|
* 0 for default of 10 seconds
|
|
|
|
*/
|
|
|
|
uint32 min_wake_secs = 11;
|
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
|
|
|
* If set, this node will try to join the specified wifi network and
|
2021-02-27 05:16:43 +00:00
|
|
|
* acquire an address via DHCP
|
|
|
|
*/
|
|
|
|
string wifi_ssid = 12;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* If set, will be use to authenticate to the named wifi
|
|
|
|
*/
|
|
|
|
string wifi_password = 13;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* If set, the node will operate as an AP (and DHCP server), otherwise it
|
|
|
|
* will be a station
|
|
|
|
*/
|
|
|
|
bool wifi_ap_mode = 14;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The region code for my radio (US, CN, EU433, etc...)
|
|
|
|
*/
|
|
|
|
RegionCode region = 15;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* Sets the current of the battery charger
|
|
|
|
*/
|
|
|
|
ChargeCurrent charge_current = 16;
|
|
|
|
|
2022-02-27 17:51:01 +00:00
|
|
|
/*
|
2022-03-15 22:45:06 +00:00
|
|
|
* Sets the role of node
|
2022-02-27 17:51:01 +00:00
|
|
|
*/
|
2022-02-27 18:00:31 +00:00
|
|
|
Role role = 18;
|
2022-02-27 17:51:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* If set, we are powered from a low-current source (i.e. solar), so even if it looks like we have power flowing in
|
2021-04-20 09:08:28 +00:00
|
|
|
* we should try to minimize power consumption as much as possible.
|
|
|
|
* YOU DO NOT NEED TO SET THIS IF YOU'VE set is_router (it is implied in that case).
|
2021-02-27 05:16:43 +00:00
|
|
|
*/
|
|
|
|
bool is_low_power = 38;
|
|
|
|
|
|
|
|
/*
|
2021-04-20 09:08:28 +00:00
|
|
|
* If set, this node is at a fixed position.
|
|
|
|
* We will generate GPS position updates at the regular interval, but use whatever the last lat/lon/alt we have for the node.
|
2021-02-27 05:16:43 +00:00
|
|
|
* The lat/lon/alt can be set by an internal GPS or with the help of the app.
|
|
|
|
*/
|
|
|
|
bool fixed_position = 39;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-03-30 00:08:05 +00:00
|
|
|
/*
|
|
|
|
* If set, this will disable the SerialConsole by not initilizing the StreamAPI
|
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
bool serial_disabled = 40;
|
2021-02-27 05:16:43 +00:00
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
2022-03-20 00:00:01 +00:00
|
|
|
* Should we disbale location sharing with other nodes (or the local phone)
|
2021-03-07 08:28:48 +00:00
|
|
|
*/
|
2022-03-20 04:58:42 +00:00
|
|
|
bool location_share_disabled = 32;
|
2021-02-27 05:16:43 +00:00
|
|
|
|
|
|
|
/*
|
2022-03-20 04:56:34 +00:00
|
|
|
* Should the GPS be disabled for this node?
|
2021-02-27 05:16:43 +00:00
|
|
|
*/
|
2022-03-20 04:56:34 +00:00
|
|
|
bool gps_disabled = 33;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
2022-03-20 04:56:34 +00:00
|
|
|
* How often should we try to get GPS position (in seconds)
|
2021-02-27 05:16:43 +00:00
|
|
|
* or zero for the default of once every 30 seconds
|
|
|
|
* or a very large value (maxint) to update only once at boot.
|
|
|
|
*/
|
|
|
|
uint32 gps_update_interval = 34;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* How long should we try to get our position during each gps_update_interval attempt? (in seconds)
|
|
|
|
* Or if zero, use the default of 30 seconds.
|
|
|
|
* If we don't get a new gps fix in that time, the gps will be put into sleep until the next gps_update_rate
|
2021-11-30 19:45:01 +00:00
|
|
|
* window.
|
2021-02-27 05:16:43 +00:00
|
|
|
*/
|
|
|
|
uint32 gps_attempt_time = 36;
|
|
|
|
|
2021-10-25 12:23:41 +00:00
|
|
|
/*
|
|
|
|
* Shall we accept 2D GPS fixes? By default, only 3D fixes are accepted
|
|
|
|
* (during a 2D fix, altitude values are unreliable and will be excluded)
|
|
|
|
*/
|
|
|
|
bool gps_accept_2d = 45;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* GPS maximum DOP accepted (dilution of precision)
|
|
|
|
* Set a rejection threshold for GPS readings based on their precision,
|
|
|
|
* relative to the GPS rated accuracy (which is typically ~3m)
|
|
|
|
* Solutions above this value will be treated as retryable errors!
|
|
|
|
* Useful range is between 1 - 64 (3m - <~200m)
|
|
|
|
* By default (if zero), accept all GPS readings
|
|
|
|
*/
|
|
|
|
uint32 gps_max_dop = 46;
|
|
|
|
|
2021-04-20 09:08:28 +00:00
|
|
|
/*
|
2021-04-02 01:11:50 +00:00
|
|
|
* This parameter is for advanced users with advanced test equipment, we do not recommend most users use it.
|
2021-04-20 09:08:28 +00:00
|
|
|
* A frequency offset that is added to to the calculated band center frequency.
|
|
|
|
* Used to correct for crystal calibration errors.
|
2021-04-02 01:11:50 +00:00
|
|
|
*/
|
|
|
|
float frequency_offset = 41;
|
|
|
|
|
2021-04-20 09:08:28 +00:00
|
|
|
/*
|
|
|
|
* The server to use for our MQTT global message gateway feature.
|
2021-11-30 19:45:01 +00:00
|
|
|
* If not set, the default server will be used
|
2021-04-20 09:08:28 +00:00
|
|
|
*/
|
2021-04-03 04:26:31 +00:00
|
|
|
string mqtt_server = 42;
|
|
|
|
|
2021-04-20 09:08:28 +00:00
|
|
|
/*
|
2021-04-03 04:26:31 +00:00
|
|
|
* If a meshtastic node is able to reach the internet it will normally attempt to gateway any channels that are marked as
|
2021-04-20 09:08:28 +00:00
|
|
|
* is_uplink_enabled or is_downlink_enabled.
|
2021-04-03 04:26:31 +00:00
|
|
|
* But if this flag is set, all MQTT features will be disabled and no servers will be contacted.
|
|
|
|
*/
|
|
|
|
bool mqtt_disabled = 43;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-08-30 06:46:07 +00:00
|
|
|
/*
|
|
|
|
* How the GPS coordinates are displayed on the OLED screen.
|
|
|
|
*/
|
|
|
|
GpsCoordinateFormat gps_format = 44;
|
2021-04-03 04:26:31 +00:00
|
|
|
|
2021-04-02 01:11:28 +00:00
|
|
|
/*
|
2021-04-20 09:08:28 +00:00
|
|
|
* This setting is never saved to disk, but if set, all device settings will be returned to factory defaults.
|
|
|
|
* (Region, serial number etc... will be preserved)
|
2021-04-02 01:11:28 +00:00
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
bool factory_reset = 100;
|
2021-04-02 01:11:28 +00:00
|
|
|
|
2021-11-30 19:45:01 +00:00
|
|
|
/*
|
2021-04-20 09:08:28 +00:00
|
|
|
* By default we turn off logging as soon as an API client connects (to keep shared serial link quiet).
|
|
|
|
* Set this to true to leave the debug log outputting even when API is active.
|
2021-04-02 01:11:28 +00:00
|
|
|
*/
|
2021-11-30 19:45:01 +00:00
|
|
|
bool debug_log_enabled = 101;
|
2021-04-02 01:11:28 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
|
|
|
* If true, radio should not try to be smart about what packets to queue to
|
|
|
|
* the phone
|
|
|
|
* bool keep_all_packets = 101;
|
2021-03-07 08:28:48 +00:00
|
|
|
* If true, we will try to capture all the packets sent on the mesh, not just the ones destined to our node.
|
2021-02-27 05:16:43 +00:00
|
|
|
* bool promiscuous_mode = 102;
|
|
|
|
* For testing it is useful sometimes to force a node to never listen to
|
|
|
|
* particular other nodes (simulating radio out of range). All nodenums listed
|
|
|
|
* in ignore_incoming will have packets they send droped on receive (by router.cpp)
|
|
|
|
*/
|
|
|
|
repeated uint32 ignore_incoming = 103;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
2022-02-27 08:58:46 +00:00
|
|
|
* Preferences for the SerialModule
|
2022-02-27 08:36:59 +00:00
|
|
|
* FIXME - Move this out of UserPreferences and into a section for module configuration.
|
2021-03-07 08:28:48 +00:00
|
|
|
*/
|
2022-03-09 07:06:09 +00:00
|
|
|
bool serial_module_enabled = 120;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-09 07:06:09 +00:00
|
|
|
bool serial_module_echo = 121;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-09 07:06:09 +00:00
|
|
|
uint32 serial_module_rxd = 122;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-09 07:06:09 +00:00
|
|
|
uint32 serial_module_txd = 123;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
2022-02-26 23:19:46 +00:00
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-26 16:31:08 +00:00
|
|
|
enum Serial_Baud {
|
|
|
|
BAUD_Default = 0;
|
|
|
|
BAUD_2400 = 1;
|
|
|
|
BAUD_4800 = 2;
|
|
|
|
BAUD_9600 = 3;
|
|
|
|
BAUD_19200 = 4;
|
|
|
|
BAUD_38400 = 5;
|
|
|
|
BAUD_57600 = 6;
|
|
|
|
BAUD_115200 = 7;
|
|
|
|
BAUD_230400 = 8;
|
|
|
|
BAUD_460800 = 9;
|
|
|
|
BAUD_576000 = 10;
|
|
|
|
BAUD_921600 = 11;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
Serial_Baud serial_module_baud = 176;
|
2022-02-26 23:19:46 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-09 07:06:09 +00:00
|
|
|
uint32 serial_module_timeout = 124;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-26 16:31:08 +00:00
|
|
|
enum Serial_Mode {
|
|
|
|
MODE_Default = 0;
|
|
|
|
MODE_SIMPLE = 1;
|
|
|
|
MODE_PROTO = 2;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
Serial_Mode serial_module_mode = 125;
|
2021-02-27 05:16:43 +00:00
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
2022-02-27 08:58:46 +00:00
|
|
|
* Preferences for the ExternalNotificationModule
|
2022-02-27 08:36:59 +00:00
|
|
|
* FIXME - Move this out of UserPreferences and into a section for module configuration.
|
2021-03-07 08:28:48 +00:00
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
bool ext_notification_module_enabled = 126;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
uint32 ext_notification_module_output_ms = 127;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
uint32 ext_notification_module_output = 128;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
bool ext_notification_module_active = 129;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
bool ext_notification_module_alert_message = 130;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
bool ext_notification_module_alert_bell = 131;
|
2021-02-27 05:16:43 +00:00
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
2022-02-27 08:58:46 +00:00
|
|
|
* Preferences for the RangeTestModule
|
2022-02-27 08:36:59 +00:00
|
|
|
* FIXME - Move this out of UserPreferences and into a section for module configuration.
|
2021-03-07 08:28:48 +00:00
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
bool range_test_module_enabled = 132;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
uint32 range_test_module_sender = 133;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
bool range_test_module_save = 134;
|
2021-02-27 05:16:43 +00:00
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
2022-02-27 08:58:46 +00:00
|
|
|
* Preferences for the StoreForwardModule
|
2022-02-27 08:36:59 +00:00
|
|
|
*FIXME - Move this out of UserPreferences and into a section for module configuration. (was 136)
|
2021-03-07 08:28:48 +00:00
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
bool store_forward_module_enabled = 148;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
bool store_forward_module_heartbeat = 149;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
uint32 store_forward_module_records = 137;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
uint32 store_forward_module_history_return_max = 138;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
uint32 store_forward_module_history_return_window = 139;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2021-03-16 23:25:17 +00:00
|
|
|
reserved 136;
|
2021-02-27 05:16:43 +00:00
|
|
|
|
|
|
|
/*
|
2022-03-26 19:25:48 +00:00
|
|
|
* Preferences for the Telemetry Module (Environment)
|
2022-02-27 08:36:59 +00:00
|
|
|
* FIXME - Move this out of UserPreferences and into a section for module configuration.
|
|
|
|
* Enable/Disable the telemetry measurement module measurement collection
|
2021-03-07 08:28:48 +00:00
|
|
|
*/
|
2022-03-26 19:25:48 +00:00
|
|
|
bool telemetry_module_environment_measurement_enabled = 140;
|
2021-04-20 09:08:28 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
2022-02-27 08:36:59 +00:00
|
|
|
* Enable/Disable the telemetry measurement module on-device display
|
2021-03-07 08:28:48 +00:00
|
|
|
*/
|
2022-03-26 19:25:48 +00:00
|
|
|
bool telemetry_module_environment_screen_enabled = 141;
|
2021-04-20 09:08:28 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Sometimes sensor reads can fail.
|
|
|
|
* If this happens, we will retry a configurable number of attempts,
|
|
|
|
* each attempt will be delayed by the minimum required refresh rate for that sensor
|
2021-03-07 08:28:48 +00:00
|
|
|
*/
|
2022-03-26 19:25:48 +00:00
|
|
|
uint32 telemetry_module_environment_read_error_count_threshold = 142;
|
2021-04-20 09:08:28 +00:00
|
|
|
|
2021-02-27 05:16:43 +00:00
|
|
|
/*
|
2021-11-30 19:45:01 +00:00
|
|
|
* Interval in seconds of how often we should try to send our
|
2021-03-07 08:28:48 +00:00
|
|
|
* measurements to the mesh
|
|
|
|
*/
|
2022-03-26 19:25:48 +00:00
|
|
|
uint32 telemetry_module_device_update_interval = 143;
|
2021-04-20 09:08:28 +00:00
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
|
|
|
* Sometimes we can end up with more than read_error_count_threshold failures.
|
|
|
|
* In this case, we will stop trying to read from the sensor for a while.
|
|
|
|
* Wait this long until trying to read from the sensor again
|
|
|
|
*/
|
2022-03-26 23:01:42 +00:00
|
|
|
uint32 telemetry_module_environment_recovery_interval = 144;
|
2021-02-27 05:16:43 +00:00
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
|
|
|
* We'll always read the sensor in Celsius, but sometimes we might want to
|
2022-03-20 03:13:34 +00:00
|
|
|
* display the results in Fahrenheit as a "user preference".
|
2021-03-07 08:28:48 +00:00
|
|
|
*/
|
2022-03-26 23:01:42 +00:00
|
|
|
bool telemetry_module_environment_display_fahrenheit = 145;
|
2021-03-03 01:25:22 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-02-27 04:13:18 +00:00
|
|
|
enum TelemetrySensorType {
|
2022-03-20 00:08:10 +00:00
|
|
|
/*
|
|
|
|
* No external telemetry sensor
|
|
|
|
*/
|
|
|
|
None = 0;
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-19 23:53:31 +00:00
|
|
|
DHT11 = 1;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-19 23:53:31 +00:00
|
|
|
DS18B20 = 2;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-19 23:53:31 +00:00
|
|
|
DHT12 = 3;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-19 23:53:31 +00:00
|
|
|
DHT21 = 4;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-19 23:53:31 +00:00
|
|
|
DHT22 = 5;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-19 23:53:31 +00:00
|
|
|
BME280 = 6;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-19 23:53:31 +00:00
|
|
|
BME680 = 7;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-19 23:53:31 +00:00
|
|
|
MCP9808 = 8;
|
2022-02-21 07:48:42 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
2022-03-19 23:53:31 +00:00
|
|
|
SHTC3 = 9;
|
2021-03-03 01:25:22 +00:00
|
|
|
};
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
|
|
|
* Specify the sensor type
|
|
|
|
*/
|
2022-03-26 23:01:42 +00:00
|
|
|
TelemetrySensorType telemetry_module_environment_sensor_type = 146;
|
2021-03-03 01:25:22 +00:00
|
|
|
|
2021-03-07 08:28:48 +00:00
|
|
|
/*
|
|
|
|
* Specify the peferred GPIO Pin for sensor readings
|
|
|
|
*/
|
2022-03-26 23:01:42 +00:00
|
|
|
uint32 telemetry_module_environment_sensor_pin = 147;
|
2021-03-03 01:25:22 +00:00
|
|
|
|
2021-10-07 13:14:23 +00:00
|
|
|
/*
|
|
|
|
* Bit field of boolean configuration options for POSITION messages
|
|
|
|
* (bitwise OR of PositionFlags)
|
|
|
|
*/
|
|
|
|
uint32 position_flags = 150;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-11-06 13:27:28 +00:00
|
|
|
/*
|
2021-11-30 19:45:01 +00:00
|
|
|
* Circumvents the logic block for determining whether the device is powered or not.
|
2021-11-06 13:27:28 +00:00
|
|
|
* Useful for devices with finicky ADC issues on the battery sense pins.
|
|
|
|
*/
|
2021-11-06 17:07:16 +00:00
|
|
|
bool is_always_powered = 151;
|
2021-11-30 19:45:01 +00:00
|
|
|
|
2021-11-26 02:38:00 +00:00
|
|
|
/*
|
2021-11-30 20:02:16 +00:00
|
|
|
* Automatically toggles to the next page on the screen like a carousel, based the specified interval in seconds.
|
2021-11-26 02:38:00 +00:00
|
|
|
* Potentially useful for devices without user buttons.
|
|
|
|
*/
|
|
|
|
uint32 auto_screen_carousel_secs = 152;
|
2021-12-06 01:44:27 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* If non-zero, the device will fully power off this many seconds after external power is removed.
|
|
|
|
*/
|
|
|
|
uint32 on_battery_shutdown_after_secs = 153;
|
2021-12-18 20:49:07 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Overrides HOPS_RELIABLE and sets the maximum number of hops. This can't be greater than 7.
|
|
|
|
*/
|
|
|
|
uint32 hop_limit = 154;
|
2021-12-20 06:54:03 +00:00
|
|
|
|
|
|
|
/*
|
2021-12-28 17:29:03 +00:00
|
|
|
* MQTT username to use (most useful for a custom MQTT server).
|
|
|
|
* If using a custom server, this will be honoured even if empty.
|
|
|
|
* If using the default server, this will only be honoured if set, otherwise the device will use the default username
|
2021-12-20 06:54:03 +00:00
|
|
|
*/
|
|
|
|
string mqtt_username = 155;
|
2022-01-19 01:39:38 +00:00
|
|
|
|
2021-12-28 17:29:03 +00:00
|
|
|
/*
|
|
|
|
* MQTT password to use (most useful for a custom MQTT server).
|
|
|
|
* If using a custom server, this will be honoured even if empty.
|
|
|
|
* If using the default server, this will only be honoured if set, otherwise the device will use the default password
|
|
|
|
*/
|
2021-12-20 06:54:03 +00:00
|
|
|
string mqtt_password = 156;
|
|
|
|
|
2022-01-06 15:52:00 +00:00
|
|
|
/*
|
|
|
|
* Disable TX from the LoRa radio. Useful for hot-swapping antennas and other tests.
|
|
|
|
* Defaults to false
|
|
|
|
*/
|
|
|
|
bool is_lora_tx_disabled = 157;
|
|
|
|
|
2022-01-10 06:22:10 +00:00
|
|
|
/*
|
|
|
|
* If set to true, enable power saving features of the esp32
|
|
|
|
*/
|
|
|
|
bool is_power_saving = 158;
|
|
|
|
|
2022-01-13 13:14:28 +00:00
|
|
|
/*
|
2022-03-23 13:52:09 +00:00
|
|
|
* Enable the rotary encoder #1. This is a 'dumb' encoder sending pulses on both A and B pins while rotating.
|
2022-01-13 13:14:28 +00:00
|
|
|
*/
|
|
|
|
bool rotary1_enabled = 160;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* GPIO pin for rotary encoder A port.
|
|
|
|
*/
|
2022-03-23 13:52:09 +00:00
|
|
|
uint32 inputbroker_pin_a = 161;
|
2022-01-13 13:14:28 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* GPIO pin for rotary encoder B port.
|
|
|
|
*/
|
2022-03-23 13:52:09 +00:00
|
|
|
uint32 inputbroker_pin_b = 162;
|
2022-01-13 13:14:28 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* GPIO pin for rotary encoder Press port.
|
|
|
|
*/
|
2022-03-23 13:52:09 +00:00
|
|
|
uint32 inputbroker_pin_press = 163;
|
2022-01-13 13:14:28 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Generate input event on CW of this kind.
|
|
|
|
*/
|
2022-03-23 13:52:09 +00:00
|
|
|
InputEventChar inputbroker_event_cw = 164;
|
2022-01-13 13:14:28 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Generate input event on CCW of this kind.
|
|
|
|
*/
|
2022-03-23 13:52:09 +00:00
|
|
|
InputEventChar inputbroker_event_ccw = 165;
|
2022-01-13 13:14:28 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Generate input event on Press of this kind.
|
|
|
|
*/
|
2022-03-23 13:52:09 +00:00
|
|
|
InputEventChar inputbroker_event_press = 166;
|
2022-01-13 13:14:28 +00:00
|
|
|
|
2022-03-23 13:52:09 +00:00
|
|
|
/*
|
|
|
|
* Enable the Up/Down/Select input device. Can be RAK rotary encoder or 3 buttons. Uses the a/b/press definitions from inputbroker.
|
|
|
|
*/
|
|
|
|
bool updown1_enabled = 167;
|
|
|
|
|
2022-01-13 13:14:28 +00:00
|
|
|
/*
|
2022-02-27 08:58:46 +00:00
|
|
|
* Enable/disable CannedMessageModule.
|
2022-01-13 13:14:28 +00:00
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
bool canned_message_module_enabled = 170;
|
2022-01-13 13:14:28 +00:00
|
|
|
|
|
|
|
/*
|
2022-02-27 08:36:59 +00:00
|
|
|
* Input event origin accepted by the canned message module.
|
2022-03-23 13:52:09 +00:00
|
|
|
* Can be e.g. "rotEnc1", "upDownEnc1" or keyword "_any"
|
2022-01-13 13:14:28 +00:00
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
string canned_message_module_allow_input_source = 171;
|
2022-01-13 13:14:28 +00:00
|
|
|
|
|
|
|
/*
|
2022-02-27 08:58:46 +00:00
|
|
|
* CannedMessageModule also sends a bell character with the messages.
|
|
|
|
* ExternalNotificationModule can benefit from this feature.
|
2022-01-13 13:14:28 +00:00
|
|
|
*/
|
2022-02-27 08:36:59 +00:00
|
|
|
bool canned_message_module_send_bell = 173;
|
2022-01-27 01:35:07 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Whether to send encrypted or decrypted packets to MQTT.
|
|
|
|
* This parameter is only honoured if you also set mqtt_server
|
|
|
|
* (the default official mqtt.meshtastic.org server can handle encrypted packets)
|
|
|
|
*
|
|
|
|
* Decrypted packets may be useful for external systems that want to consume meshtastic packets
|
|
|
|
*/
|
|
|
|
bool mqtt_encryption_enabled = 174;
|
2022-02-03 03:19:24 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Ratio of voltage divider for battery pin eg. 3.20 (R1=100k, R2=220k)
|
|
|
|
* Overrides the ADC_MULTIPLIER defined in variant for battery voltage calculation.
|
|
|
|
*/
|
|
|
|
float adc_multiplier_override = 175;
|
2022-03-26 19:25:48 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Interval in seconds of how often we should try to send our
|
|
|
|
* environent measurements to the mesh
|
|
|
|
*/
|
2022-03-26 22:49:01 +00:00
|
|
|
uint32 telemetry_module_environment_update_interval = 177;
|
2022-01-13 13:14:28 +00:00
|
|
|
}
|
2022-01-19 01:39:38 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
/*
|
|
|
|
* TODO: REPLACE
|
|
|
|
*/
|
|
|
|
UserPreferences preferences = 1;
|
2022-01-19 01:39:38 +00:00
|
|
|
|
2022-02-21 07:48:42 +00:00
|
|
|
}
|