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 05:32:23 +00:00
/*
2022-02-27 09:49:24 +00:00
* Radio interface for ExternalNotificationModule
2021-03-13 05:32:23 +00:00
*
*/
class ExternalNotificationModule : public SinglePortModule, private concurrency::OSThread
{
public:
2022-02-27 09:49:24 +00:00
ExternalNotificationModule();
2021-01-28 04:06:39 +00:00
void setExternalOn();
void setExternalOff();
void getExternal();
2021-01-28 04:06:39 +00:00
protected:
2021-03-13 05:32:23 +00: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 05:32:23 +00:00
};