mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-11 15:11:25 +00:00
33 lines
792 B
C++
33 lines
792 B
C++
#pragma once
|
|
|
|
#include "SinglePortModule.h"
|
|
#include "concurrency/OSThread.h"
|
|
#include "configuration.h"
|
|
#include <Arduino.h>
|
|
#include <functional>
|
|
|
|
/*
|
|
* Radio interface for ExternalNotificationModule
|
|
*
|
|
*/
|
|
class ExternalNotificationModule : public SinglePortModule, private concurrency::OSThread
|
|
{
|
|
public:
|
|
ExternalNotificationModule();
|
|
|
|
void setExternalOn();
|
|
void setExternalOff();
|
|
void getExternal();
|
|
|
|
protected:
|
|
// 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
|
|
*/
|
|
virtual ProcessMessage handleReceived(const MeshPacket &mp) override;
|
|
|
|
virtual int32_t runOnce() override;
|
|
};
|