@@ -201,7 +201,11 @@ typedef enum _meshtastic_Config_LoRaConfig_RegionCode {
201201 /* Ukraine 433mhz */
202202 meshtastic_Config_LoRaConfig_RegionCode_UA_433 = 14 ,
203203 /* Ukraine 868mhz */
204- meshtastic_Config_LoRaConfig_RegionCode_UA_868 = 15
204+ meshtastic_Config_LoRaConfig_RegionCode_UA_868 = 15 ,
205+ /* Malaysia 433mhz */
206+ meshtastic_Config_LoRaConfig_RegionCode_MY_433 = 16 ,
207+ /* Malaysia 919mhz */
208+ meshtastic_Config_LoRaConfig_RegionCode_MY_919 = 17
205209} meshtastic_Config_LoRaConfig_RegionCode ;
206210
207211/* Standard predefined channel settings
@@ -281,10 +285,7 @@ typedef struct _meshtastic_Config_PositionConfig {
281285 or zero for the default of once every 30 seconds
282286 or a very large value (maxint) to update only once at boot. */
283287 uint32_t gps_update_interval ;
284- /* How long should we try to get our position during each gps_update_interval attempt? (in seconds)
285- Or if zero, use the default of 30 seconds.
286- 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
287- window. */
288+ /* Deprecated in favor of using smart / regular broadcast intervals as implicit attempt time */
288289 uint32_t gps_attempt_time ;
289290 /* Bit field of boolean configuration options for POSITION messages
290291 (bitwise OR of PositionFlags) */
@@ -462,6 +463,8 @@ typedef struct _meshtastic_Config_LoRaConfig {
462463 in ignore_incoming will have packets they send dropped on receive (by router.cpp) */
463464 pb_size_t ignore_incoming_count ;
464465 uint32_t ignore_incoming [3 ];
466+ /* If true, the device will not process any packets received via LoRa that passed via MQTT anywhere on the path towards it. */
467+ bool ignore_mqtt ;
465468} meshtastic_Config_LoRaConfig ;
466469
467470typedef struct _meshtastic_Config_BluetoothConfig {
@@ -525,8 +528,8 @@ extern "C" {
525528#define _meshtastic_Config_DisplayConfig_DisplayMode_ARRAYSIZE ((meshtastic_Config_DisplayConfig_DisplayMode)(meshtastic_Config_DisplayConfig_DisplayMode_COLOR+1))
526529
527530#define _meshtastic_Config_LoRaConfig_RegionCode_MIN meshtastic_Config_LoRaConfig_RegionCode_UNSET
528- #define _meshtastic_Config_LoRaConfig_RegionCode_MAX meshtastic_Config_LoRaConfig_RegionCode_UA_868
529- #define _meshtastic_Config_LoRaConfig_RegionCode_ARRAYSIZE ((meshtastic_Config_LoRaConfig_RegionCode)(meshtastic_Config_LoRaConfig_RegionCode_UA_868 +1))
531+ #define _meshtastic_Config_LoRaConfig_RegionCode_MAX meshtastic_Config_LoRaConfig_RegionCode_MY_919
532+ #define _meshtastic_Config_LoRaConfig_RegionCode_ARRAYSIZE ((meshtastic_Config_LoRaConfig_RegionCode)(meshtastic_Config_LoRaConfig_RegionCode_MY_919 +1))
530533
531534#define _meshtastic_Config_LoRaConfig_ModemPreset_MIN meshtastic_Config_LoRaConfig_ModemPreset_LONG_FAST
532535#define _meshtastic_Config_LoRaConfig_ModemPreset_MAX meshtastic_Config_LoRaConfig_ModemPreset_LONG_MODERATE
@@ -564,7 +567,7 @@ extern "C" {
564567#define meshtastic_Config_NetworkConfig_init_default {0, "", "", "", 0, _meshtastic_Config_NetworkConfig_AddressMode_MIN, false, meshtastic_Config_NetworkConfig_IpV4Config_init_default, ""}
565568#define meshtastic_Config_NetworkConfig_IpV4Config_init_default {0, 0, 0, 0}
566569#define meshtastic_Config_DisplayConfig_init_default {0, _meshtastic_Config_DisplayConfig_GpsCoordinateFormat_MIN, 0, 0, 0, _meshtastic_Config_DisplayConfig_DisplayUnits_MIN, _meshtastic_Config_DisplayConfig_OledType_MIN, _meshtastic_Config_DisplayConfig_DisplayMode_MIN, 0, 0}
567- #define meshtastic_Config_LoRaConfig_init_default {0, _meshtastic_Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, _meshtastic_Config_LoRaConfig_RegionCode_MIN, 0, 0, 0, 0, 0, 0, 0, 0, {0, 0, 0}}
570+ #define meshtastic_Config_LoRaConfig_init_default {0, _meshtastic_Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, _meshtastic_Config_LoRaConfig_RegionCode_MIN, 0, 0, 0, 0, 0, 0, 0, 0, {0, 0, 0}, 0 }
568571#define meshtastic_Config_BluetoothConfig_init_default {0, _meshtastic_Config_BluetoothConfig_PairingMode_MIN, 0}
569572#define meshtastic_Config_init_zero {0, {meshtastic_Config_DeviceConfig_init_zero}}
570573#define meshtastic_Config_DeviceConfig_init_zero {_meshtastic_Config_DeviceConfig_Role_MIN, 0, 0, 0, 0, _meshtastic_Config_DeviceConfig_RebroadcastMode_MIN, 0, 0, 0, 0}
@@ -573,7 +576,7 @@ extern "C" {
573576#define meshtastic_Config_NetworkConfig_init_zero {0, "", "", "", 0, _meshtastic_Config_NetworkConfig_AddressMode_MIN, false, meshtastic_Config_NetworkConfig_IpV4Config_init_zero, ""}
574577#define meshtastic_Config_NetworkConfig_IpV4Config_init_zero {0, 0, 0, 0}
575578#define meshtastic_Config_DisplayConfig_init_zero {0, _meshtastic_Config_DisplayConfig_GpsCoordinateFormat_MIN, 0, 0, 0, _meshtastic_Config_DisplayConfig_DisplayUnits_MIN, _meshtastic_Config_DisplayConfig_OledType_MIN, _meshtastic_Config_DisplayConfig_DisplayMode_MIN, 0, 0}
576- #define meshtastic_Config_LoRaConfig_init_zero {0, _meshtastic_Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, _meshtastic_Config_LoRaConfig_RegionCode_MIN, 0, 0, 0, 0, 0, 0, 0, 0, {0, 0, 0}}
579+ #define meshtastic_Config_LoRaConfig_init_zero {0, _meshtastic_Config_LoRaConfig_ModemPreset_MIN, 0, 0, 0, 0, _meshtastic_Config_LoRaConfig_RegionCode_MIN, 0, 0, 0, 0, 0, 0, 0, 0, {0, 0, 0}, 0 }
577580#define meshtastic_Config_BluetoothConfig_init_zero {0, _meshtastic_Config_BluetoothConfig_PairingMode_MIN, 0}
578581
579582/* Field tags (for use in manual encoding/decoding) */
@@ -644,6 +647,7 @@ extern "C" {
644647#define meshtastic_Config_LoRaConfig_sx126x_rx_boosted_gain_tag 13
645648#define meshtastic_Config_LoRaConfig_override_frequency_tag 14
646649#define meshtastic_Config_LoRaConfig_ignore_incoming_tag 103
650+ #define meshtastic_Config_LoRaConfig_ignore_mqtt_tag 104
647651#define meshtastic_Config_BluetoothConfig_enabled_tag 1
648652#define meshtastic_Config_BluetoothConfig_mode_tag 2
649653#define meshtastic_Config_BluetoothConfig_fixed_pin_tag 3
@@ -766,7 +770,8 @@ X(a, STATIC, SINGULAR, UINT32, channel_num, 11) \
766770X(a, STATIC, SINGULAR, BOOL, override_duty_cycle, 12) \
767771X(a, STATIC, SINGULAR, BOOL, sx126x_rx_boosted_gain, 13) \
768772X(a, STATIC, SINGULAR, FLOAT, override_frequency, 14) \
769- X(a, STATIC, REPEATED, UINT32, ignore_incoming, 103)
773+ X(a, STATIC, REPEATED, UINT32, ignore_incoming, 103) \
774+ X(a, STATIC, SINGULAR, BOOL, ignore_mqtt, 104)
770775#define meshtastic_Config_LoRaConfig_CALLBACK NULL
771776#define meshtastic_Config_LoRaConfig_DEFAULT NULL
772777
@@ -802,7 +807,7 @@ extern const pb_msgdesc_t meshtastic_Config_BluetoothConfig_msg;
802807#define meshtastic_Config_BluetoothConfig_size 10
803808#define meshtastic_Config_DeviceConfig_size 32
804809#define meshtastic_Config_DisplayConfig_size 28
805- #define meshtastic_Config_LoRaConfig_size 77
810+ #define meshtastic_Config_LoRaConfig_size 80
806811#define meshtastic_Config_NetworkConfig_IpV4Config_size 20
807812#define meshtastic_Config_NetworkConfig_size 196
808813#define meshtastic_Config_PositionConfig_size 60
0 commit comments