mirror of
https://github.com/meshtastic/firmware.git
synced 2026-02-06 00:52:01 +00:00
19 lines
563 B
C++
19 lines
563 B
C++
#pragma once
|
|
#include "configuration.h"
|
|
#if !MESHTASTIC_EXCLUDE_REPLYBOT
|
|
#include "SinglePortModule.h"
|
|
#include "mesh/generated/meshtastic/mesh.pb.h"
|
|
|
|
class ReplyBotModule : public SinglePortModule
|
|
{
|
|
public:
|
|
ReplyBotModule();
|
|
void setup() override;
|
|
bool wantPacket(const meshtastic_MeshPacket *p) override;
|
|
ProcessMessage handleReceived(const meshtastic_MeshPacket &mp) override;
|
|
|
|
protected:
|
|
bool isCommand(const char *msg) const;
|
|
void sendDm(const meshtastic_MeshPacket &rx, const char *text);
|
|
};
|
|
#endif // MESHTASTIC_EXCLUDE_REPLYBOT
|