From 270cbdb6801761f054cb79f64b68b8a75cfb50f6 Mon Sep 17 00:00:00 2001 From: Charles Crossan Date: Tue, 2 Mar 2021 20:25:22 -0500 Subject: [PATCH] add more env configs --- portnums.proto | 14 +++++++------- radioconfig.proto | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/portnums.proto b/portnums.proto index c49476e..ca1d6b2 100644 --- a/portnums.proto +++ b/portnums.proto @@ -86,13 +86,6 @@ enum PortNum { */ IP_TUNNEL_APP = 33; - /* - * Provides a format to send and receive environmental data from the Meshtastic network. - * - * Maintained by Charles Crossan (crossan007) : crossan007@gmail.com - */ - ENVIRONMENTAL_MEASUREMENT_APP = 34; - /** Provides a hardware serial interface to send and receive from the Meshtastic network. Connect to the RX/TX pins of a device with 38400 8N1. Packets received from the Meshtastic network is forwarded to the RX pin while sending a packet to TX will go out to the Mesh @@ -118,6 +111,13 @@ enum PortNum { * Maintained by Jm Casler (MC Hamster) : jm@casler.org */ RANGE_TEST_APP = 66; + + /* + * Provides a format to send and receive environmental data from the Meshtastic network. + * + * Maintained by Charles Crossan (crossan007) : crossan007@gmail.com + */ + ENVIRONMENTAL_MEASUREMENT_APP = 67; /* * Private applications should use portnums >= 256. diff --git a/radioconfig.proto b/radioconfig.proto index 1c85f08..e0811a3 100644 --- a/radioconfig.proto +++ b/radioconfig.proto @@ -392,6 +392,23 @@ message RadioConfig { */ uint32 environmental_measurement_plugin_recovery_interval = 144; + /* We'll always read the sensor in Celsius, but sometimes we might want to + display the results in Farenheit as a "user preference". s + */ + bool environmental_measurement_plugin_display_farenheit = 145; + + enum EnvironmentalMeasurementSensorType { + DHT11 = 0; + }; + + /* Specify the sensor type + */ + EnvironmentalMeasurementSensorType environmental_measurement_plugin_sensor_type = 146; + + /* Specify the peferred GPIO Pin for sensor readings + */ + uint32 environmental_measurement_plugin_sensor_pin = 147; + }