2021-06-27 10:56:28 -07:00
|
|
|
#include "configuration.h"
|
2022-01-13 14:06:10 +01:00
|
|
|
#include "input/InputBroker.h"
|
|
|
|
|
#include "input/RotaryEncoderInterruptImpl1.h"
|
2022-02-27 00:18:35 -08:00
|
|
|
#include "modules/AdminModule.h"
|
|
|
|
|
#include "modules/CannedMessageModule.h"
|
|
|
|
|
#include "modules/ExternalNotificationModule.h"
|
|
|
|
|
#include "modules/NodeInfoModule.h"
|
|
|
|
|
#include "modules/PositionModule.h"
|
|
|
|
|
#include "modules/RemoteHardwareModule.h"
|
|
|
|
|
#include "modules/ReplyModule.h"
|
|
|
|
|
#include "modules/RoutingModule.h"
|
|
|
|
|
#include "modules/TextMessageModule.h"
|
2022-01-23 10:05:39 -06:00
|
|
|
#ifndef PORTDUINO
|
2022-02-26 23:56:26 -08:00
|
|
|
#include "modules/Telemetry/Telemetry.h"
|
2022-01-23 10:05:39 -06:00
|
|
|
#endif
|
2021-02-16 18:07:02 -08:00
|
|
|
#ifndef NO_ESP32
|
2022-02-26 23:56:26 -08:00
|
|
|
#include "modules/esp32/RangeTestPlugin.h"
|
|
|
|
|
#include "modules/esp32/SerialPlugin.h"
|
|
|
|
|
#include "modules/esp32/StoreForwardPlugin.h"
|
2021-02-16 18:07:02 -08:00
|
|
|
#endif
|
2021-01-08 13:15:49 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create plugin instances here. If you are adding a new plugin, you must 'new' it here (or somewhere else)
|
|
|
|
|
*/
|
2021-01-16 22:27:33 -08:00
|
|
|
void setupPlugins()
|
|
|
|
|
{
|
2022-01-11 16:02:55 +01:00
|
|
|
inputBroker = new InputBroker();
|
2021-02-21 14:03:44 +08:00
|
|
|
adminPlugin = new AdminPlugin();
|
2021-01-08 13:15:49 +08:00
|
|
|
nodeInfoPlugin = new NodeInfoPlugin();
|
|
|
|
|
positionPlugin = new PositionPlugin();
|
|
|
|
|
textMessagePlugin = new TextMessagePlugin();
|
2022-02-24 20:05:27 -08:00
|
|
|
|
2021-01-08 13:15:49 +08:00
|
|
|
// 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();
|
2022-02-19 23:43:32 -08:00
|
|
|
rotaryEncoderInterruptImpl1 = new RotaryEncoderInterruptImpl1();
|
2022-01-12 09:26:42 +01:00
|
|
|
rotaryEncoderInterruptImpl1->init();
|
2022-01-11 16:02:55 +01:00
|
|
|
cannedMessagePlugin = new CannedMessagePlugin();
|
2022-01-23 10:05:39 -06:00
|
|
|
#ifndef PORTDUINO
|
2022-02-26 20:52:22 -08:00
|
|
|
new TelemetryPlugin();
|
2022-01-23 10:05:39 -06:00
|
|
|
#endif
|
2021-01-16 22:27:33 -08:00
|
|
|
#ifndef NO_ESP32
|
|
|
|
|
// Only run on an esp32 based device.
|
|
|
|
|
|
2021-01-31 09:12:36 -08:00
|
|
|
/*
|
|
|
|
|
Maintained by MC Hamster (Jm Casler) jm@casler.org
|
|
|
|
|
*/
|
|
|
|
|
new SerialPlugin();
|
|
|
|
|
new ExternalNotificationPlugin();
|
2021-02-14 13:31:11 -08:00
|
|
|
|
2021-02-16 18:07:02 -08:00
|
|
|
// rangeTestPlugin = new RangeTestPlugin();
|
2021-02-14 20:13:52 -08:00
|
|
|
storeForwardPlugin = new StoreForwardPlugin();
|
2021-02-14 13:31:11 -08:00
|
|
|
|
|
|
|
|
new RangeTestPlugin();
|
2021-02-16 18:07:02 -08:00
|
|
|
// new StoreForwardPlugin();
|
2021-01-16 22:27:33 -08:00
|
|
|
#endif
|
2021-03-05 11:44:45 +08:00
|
|
|
|
|
|
|
|
// NOTE! This plugin must be added LAST because it likes to check for replies from other plugins and avoid sending extra acks
|
|
|
|
|
routingPlugin = new RoutingPlugin();
|
2021-01-08 13:15:49 +08:00
|
|
|
}
|