kopia lustrzana https://github.com/meshtastic/protobufs
Add paxcounter protobuf and config
rodzic
a34b2c680e
commit
c1e179ecfd
|
@ -6,7 +6,6 @@
|
||||||
*AdminMessage.set_ringtone_message max_size:231
|
*AdminMessage.set_ringtone_message max_size:231
|
||||||
*AdminMessage.get_ringtone_response max_size:231
|
*AdminMessage.get_ringtone_response max_size:231
|
||||||
|
|
||||||
|
|
||||||
*HamParameters.call_sign max_size:8
|
*HamParameters.call_sign max_size:8
|
||||||
*HamParameters.short_name max_size:6
|
*HamParameters.short_name max_size:6
|
||||||
*NodeRemoteHardwarePinsResponse.node_remote_hardware_pins max_count:16
|
*NodeRemoteHardwarePinsResponse.node_remote_hardware_pins max_count:16
|
|
@ -124,6 +124,11 @@ message AdminMessage {
|
||||||
* TODO: REPLACE
|
* TODO: REPLACE
|
||||||
*/
|
*/
|
||||||
DETECTIONSENSOR_CONFIG = 11;
|
DETECTIONSENSOR_CONFIG = 11;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TODO: REPLACE
|
||||||
|
*/
|
||||||
|
PAXCOUNTER_CONFIG = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -121,6 +121,11 @@ message LocalModuleConfig {
|
||||||
*/
|
*/
|
||||||
ModuleConfig.DetectionSensorConfig detection_sensor = 13;
|
ModuleConfig.DetectionSensorConfig detection_sensor = 13;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Paxcounter Config
|
||||||
|
*/
|
||||||
|
ModuleConfig.PaxcounterConfig paxcounter = 14;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A version integer used to invalidate old save files when we make
|
* A version integer used to invalidate old save files when we make
|
||||||
* incompatible changes This integer is set at build time and is private to
|
* incompatible changes This integer is set at build time and is private to
|
||||||
|
|
|
@ -214,6 +214,23 @@ message ModuleConfig {
|
||||||
uint32 i2s_sck = 7;
|
uint32 i2s_sck = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Config for the Paxcounter Module
|
||||||
|
*/
|
||||||
|
message PaxcounterConfig {
|
||||||
|
/*
|
||||||
|
* Enable the Paxcounter Module
|
||||||
|
*/
|
||||||
|
bool enabled = 1;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Interval in seconds of how often we should try to send our
|
||||||
|
* metrics to the mesh
|
||||||
|
*/
|
||||||
|
|
||||||
|
uint32 paxcounter_update_interval = 2;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Serial Config
|
* Serial Config
|
||||||
*/
|
*/
|
||||||
|
@ -713,6 +730,11 @@ message ModuleConfig {
|
||||||
* TODO: REPLACE
|
* TODO: REPLACE
|
||||||
*/
|
*/
|
||||||
DetectionSensorConfig detection_sensor = 12;
|
DetectionSensorConfig detection_sensor = 12;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TODO: REPLACE
|
||||||
|
*/
|
||||||
|
PaxcounterConfig paxcounter = 13;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package meshtastic;
|
||||||
|
|
||||||
|
option csharp_namespace = "Meshtastic.Protobufs";
|
||||||
|
option go_package = "github.com/meshtastic/go/generated";
|
||||||
|
option java_outer_classname = "PaxcountProtos";
|
||||||
|
option java_package = "com.geeksville.mesh";
|
||||||
|
option swift_prefix = "";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TODO: REPLACE
|
||||||
|
*/
|
||||||
|
message Paxcount {
|
||||||
|
/*
|
||||||
|
* seen Wifi devices
|
||||||
|
*/
|
||||||
|
uint32 wifi = 1;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Seen BLE devices
|
||||||
|
*/
|
||||||
|
uint32 ble = 2;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Uptime in seconds
|
||||||
|
*/
|
||||||
|
uint32 uptime = 3;
|
||||||
|
}
|
|
@ -118,6 +118,12 @@ enum PortNum {
|
||||||
*/
|
*/
|
||||||
IP_TUNNEL_APP = 33;
|
IP_TUNNEL_APP = 33;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Paxcounter lib included in the firmware
|
||||||
|
* ENCODING: protobuf
|
||||||
|
*/
|
||||||
|
PAXCOUNTER_APP = 34;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Provides a hardware serial interface to send and receive from the Meshtastic network.
|
* 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
|
* Connect to the RX/TX pins of a device with 38400 8N1. Packets received from the Meshtastic
|
||||||
|
|
Ładowanie…
Reference in New Issue