feat(variants): add seeed-m2100 for the SenseCAP S2100 data logger

This commit is contained in:
Thomas Göttgens committed 2026-10-03 21:22:53 +02:00
1 parent e45b76355f
commit eec87f8a6d
4 files changed
+69

No files matched your search

+9
View File
@@ -1497,6 +1497,15 @@ void NodeDB::installDefaultModuleConfig()
moduleConfig.has_canned_message = true;
#ifdef SEEED_M2100
// Single-purpose data logger: poll the RS485 sensor without any client setup.
moduleConfig.serial.enabled = true;
moduleConfig.serial.mode = meshtastic_ModuleConfig_SerialConfig_Serial_Mode_MODBUS;
moduleConfig.serial.baud = meshtastic_ModuleConfig_SerialConfig_Serial_Baud_BAUD_9600;
moduleConfig.serial.rxd = PIN_SERIAL2_RX;
moduleConfig.serial.txd = PIN_SERIAL2_TX;
#endif
#if USERPREFS_MQTT_ENABLED && !MESHTASTIC_EXCLUDE_MQTT
moduleConfig.mqtt.enabled = true;
#endif