From 564292ee83bbd085d0c51a7f882d3a2aa305d6d6 Mon Sep 17 00:00:00 2001 From: Charles Crossan Date: Sun, 17 Jan 2021 21:13:59 -0500 Subject: [PATCH] add environmental measurements add syntax --- environmental_measurement.proto | 9 +++++++++ portnums.proto | 20 +++++++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 environmental_measurement.proto diff --git a/environmental_measurement.proto b/environmental_measurement.proto new file mode 100644 index 0000000..c07524e --- /dev/null +++ b/environmental_measurement.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +message EnvironmentalMeasurement { + + float temperature = 1; + float relative_humidity = 2; + float barometric_pressure = 3; + +} \ No newline at end of file diff --git a/portnums.proto b/portnums.proto index 81b0a39..e03d111 100644 --- a/portnums.proto +++ b/portnums.proto @@ -78,13 +78,23 @@ enum PortNum { IP_TUNNEL_APP = 33; /* - * 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 - * network. Maximum packet size of 240 bytes. + * Provides a format to send and receive environmental data from the Meshtastic network. * - * Maintained by Jm Casler (MC Hamster) : jm@casler.org + * 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 + network. Maximum packet size of 240 bytes. + + Plugin is disabled by default can be turned on by setting SERIALPLUGIN_ENABLED = 1 in + SerialPlugh.cpp. + + Maintained by Jm Casler (MC Hamster) : jm@casler.org + + */ SERIAL_APP = 64; /*