firmware/src/modules/ReplyModule.h

23 lines
519 B
C
Raw Normal View History

2020-12-11 01:11:53 +00:00
#pragma once
#include "SinglePortPlugin.h"
/**
* A simple example module that just replies with "Message received" to any message it receives.
2020-12-11 01:11:53 +00:00
*/
class ReplyPlugin : public SinglePortPlugin
{
public:
/** Constructor
* name is for debugging output
*/
ReplyPlugin() : SinglePortPlugin("reply", PortNum_REPLY_APP) {}
protected:
/** For reply module we do all of our processing in the (normally optional)
2020-12-13 04:57:37 +00:00
* want_replies handling
2020-12-11 01:11:53 +00:00
*/
2022-01-24 17:24:40 +00:00
virtual MeshPacket *allocReply() override;
2020-12-11 01:11:53 +00:00
};