mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-05 05:04:46 +00:00
24 lines
590 B
C++
24 lines
590 B
C++
#pragma once
|
|
#include "SinglePortPlugin.h"
|
|
|
|
|
|
/**
|
|
* A simple example plugin that just replies with "Message received" to any message it receives.
|
|
*/
|
|
class ReplyPlugin : public SinglePortPlugin
|
|
{
|
|
public:
|
|
/** Constructor
|
|
* name is for debugging output
|
|
*/
|
|
ReplyPlugin() : SinglePortPlugin("reply", PortNum_REPLY_APP) {}
|
|
|
|
protected:
|
|
|
|
/** Called to handle a particular incoming message
|
|
|
|
@return true if you've guaranteed you've handled this message and no other handlers should be considered for it
|
|
*/
|
|
virtual bool handleReceived(const MeshPacket &mp);
|
|
};
|