add some documentation, cleanup

This commit is contained in:
Thomas Herrmann
2024-03-06 19:15:04 +01:00
committed by Thomas Göttgens
parent 73c77b663c
commit 09e08e0091
2 changed files with 29 additions and 17 deletions

View File

@@ -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;