2025-04-11 07:38:44 -10:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "MeshModule.h"
|
|
|
|
|
#include "concurrency/OSThread.h"
|
|
|
|
|
#include "configuration.h"
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
#include <functional>
|
|
|
|
|
|
2026-01-04 12:15:53 +01:00
|
|
|
class GenericThreadModule : private concurrency::OSThread
|
|
|
|
|
{
|
|
|
|
|
bool firstTime = 1;
|
2025-04-11 07:38:44 -10:00
|
|
|
|
2026-01-04 12:15:53 +01:00
|
|
|
public:
|
|
|
|
|
GenericThreadModule();
|
2025-04-11 07:38:44 -10:00
|
|
|
|
2026-01-04 12:15:53 +01:00
|
|
|
protected:
|
|
|
|
|
unsigned int my_interval = 10000; // interval in millisconds
|
|
|
|
|
virtual int32_t runOnce() override;
|
2025-04-11 07:38:44 -10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern GenericThreadModule *genericThreadModule;
|