Skip to content

Commit

Permalink
Merge pull request meshtastic#16 from crossan007/add-environment
Browse files Browse the repository at this point in the history
Add environment measurement settings
  • Loading branch information
geeksville authored Mar 4, 2021
2 parents 94bd0aa + 270cbdb commit 817863f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
14 changes: 7 additions & 7 deletions portnums.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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) : [email protected]
*/
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
Expand All @@ -118,6 +111,13 @@ enum PortNum {
* Maintained by Jm Casler (MC Hamster) : [email protected]
*/
RANGE_TEST_APP = 66;

/*
* Provides a format to send and receive environmental data from the Meshtastic network.
*
* Maintained by Charles Crossan (crossan007) : [email protected]
*/
ENVIRONMENTAL_MEASUREMENT_APP = 67;

/*
* Private applications should use portnums >= 256.
Expand Down
17 changes: 17 additions & 0 deletions radioconfig.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;


}

Expand Down

0 comments on commit 817863f

Please sign in to comment.