Files
firmware/src/plugins/ReplyPlugin.h

23 lines
510 B
C
Raw Normal View History

2020-12-11 09:11:53 +08:00
#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:
2020-12-13 12:57:37 +08:00
/** For reply plugin we do all of our processing in the (normally optional)
* want_replies handling
2020-12-11 09:11:53 +08:00
*/
2020-12-13 12:57:37 +08:00
virtual MeshPacket *allocReply();
2020-12-11 09:11:53 +08:00
};