Add Role to radioconfig

pull/118/head
Jm Casler 2022-02-27 09:51:01 -08:00
rodzic 692e62870f
commit ecf2862e17
1 zmienionych plików z 35 dodań i 0 usunięć

Wyświetl plik

@ -102,6 +102,36 @@ enum RegionCode {
TH = 12;
}
/*
* Defines the device's role on the Mesh network
* unset
* - If there's no router, don't repeat packets that are below a certain treshold.
*
* Router
* Functions as a router
*
* Repeater
* Repeats all packets. This is similiar to the behavior in Meshtastic 1.2.
*/
enum Role {
/*
* Default device role
*/
Unset = 0;
/*
* Router device role
*/
Router = 1;
/*
* Repeater device role
*/
Repeater = 2;
}
/*
* 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.
@ -522,6 +552,11 @@ message RadioConfig {
*/
ChargeCurrent charge_current = 16;
/*
* Sets the current of the battery charger
*/
Role role = 17;
/*
* Are we operating as a router.
* Changes behavior in the following ways: