mirror of
https://github.com/meshtastic/firmware.git
synced 2026-03-30 04:54:14 -04:00
add some documentation, cleanup
This commit is contained in:
committed by
Thomas Göttgens
parent
73c77b663c
commit
09e08e0091
@@ -8,18 +8,19 @@
|
||||
#include <libpax_api.h>
|
||||
|
||||
/**
|
||||
* A simple example module that just replies with "Message received" to any message it receives.
|
||||
* Wrapper module for the estimate passenger (PAX) count library (https://github.com/dbinfrago/libpax) which
|
||||
* implements the core functionality of the ESP32 Paxcounter project (https://github.com/cyberman54/ESP32-Paxcounter)
|
||||
*/
|
||||
class PaxcounterModule : private concurrency::OSThread, public ProtobufModule<meshtastic_Paxcount>
|
||||
{
|
||||
bool firstTime = true;
|
||||
bool reportedDataSent = true;
|
||||
|
||||
static void handlePaxCounterReportRequest();
|
||||
|
||||
public:
|
||||
PaxcounterModule();
|
||||
|
||||
static void handlePaxCounterReportRequest();
|
||||
|
||||
protected:
|
||||
struct count_payload_t count_from_libpax = {0, 0, 0};
|
||||
virtual int32_t runOnce() override;
|
||||
|
||||
Reference in New Issue
Block a user