Files
firmware/src/modules/ExternalNotificationModule.h

33 lines
792 B
C
Raw Normal View History

#pragma once
#include "SinglePortModule.h"
#include "concurrency/OSThread.h"
#include "configuration.h"
#include <Arduino.h>
#include <functional>
2021-03-13 13:32:23 +08:00
/*
2022-02-27 01:49:24 -08:00
* Radio interface for ExternalNotificationModule
2021-03-13 13:32:23 +08:00
*
*/
class ExternalNotificationModule : public SinglePortModule, private concurrency::OSThread
{
public:
2022-02-27 01:49:24 -08:00
ExternalNotificationModule();
2021-01-27 20:06:39 -08:00
void setExternalOn();
void setExternalOff();
void getExternal();
2021-01-27 20:06:39 -08:00
protected:
2021-03-13 13:32:23 +08:00
// virtual MeshPacket *allocReply();
/** Called to handle a particular incoming message
@return ProcessMessage::STOP if you've guaranteed you've handled this message and no other handlers should be considered for it
*/
2022-01-24 17:24:40 +00:00
virtual ProcessMessage handleReceived(const MeshPacket &mp) override;
2022-01-24 17:24:40 +00:00
virtual int32_t runOnce() override;
2021-03-13 13:32:23 +08:00
};