mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-11 15:11:25 +00:00
23 lines
519 B
C++
23 lines
519 B
C++
#pragma once
|
|
#include "SinglePortModule.h"
|
|
|
|
|
|
/**
|
|
* A simple example module that just replies with "Message received" to any message it receives.
|
|
*/
|
|
class ReplyModule : public SinglePortModule
|
|
{
|
|
public:
|
|
/** Constructor
|
|
* name is for debugging output
|
|
*/
|
|
ReplyModule() : SinglePortModule("reply", PortNum_REPLY_APP) {}
|
|
|
|
protected:
|
|
|
|
/** For reply module we do all of our processing in the (normally optional)
|
|
* want_replies handling
|
|
*/
|
|
virtual MeshPacket *allocReply() override;
|
|
};
|