mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-05 12:19:56 +00:00
eff0c1fe89
Framework is done. Just need to blink a few things and update protobufs.
30 lines
1004 B
C++
30 lines
1004 B
C++
#include "plugins/ExternalNotificationPlugin.h"
|
|
#include "plugins/NodeInfoPlugin.h"
|
|
#include "plugins/PositionPlugin.h"
|
|
#include "plugins/RemoteHardwarePlugin.h"
|
|
#include "plugins/ReplyPlugin.h"
|
|
#include "plugins/SerialPlugin.h"
|
|
#include "plugins/TextMessagePlugin.h"
|
|
|
|
/**
|
|
* Create plugin instances here. If you are adding a new plugin, you must 'new' it here (or somewhere else)
|
|
*/
|
|
void setupPlugins()
|
|
{
|
|
nodeInfoPlugin = new NodeInfoPlugin();
|
|
positionPlugin = new PositionPlugin();
|
|
textMessagePlugin = new TextMessagePlugin();
|
|
|
|
// Note: if the rest of meshtastic doesn't need to explicitly use your plugin, you do not need to assign the instance
|
|
// to a global variable.
|
|
|
|
new RemoteHardwarePlugin();
|
|
new ReplyPlugin();
|
|
|
|
#ifndef NO_ESP32
|
|
// Only run on an esp32 based device.
|
|
|
|
new SerialPlugin(); // Maintained by MC Hamster (Jm Casler) jm@casler.org
|
|
new ExternalNotificationPlugin(); // Maintained by MC Hamster (Jm Casler) jm@casler.org
|
|
#endif
|
|
} |