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"
|
2021-01-27 19:18:16 -08:00
|
|
|
#include "plugins/ExternalNotificationPlugin.h"
|
2021-01-08 13:15:49 +08:00
|
|
|
#include "plugins/NodeInfoPlugin.h"
|
|
|
|
|
#include "plugins/PositionPlugin.h"
|
2021-01-16 22:27:33 -08:00
|
|
|
#include "plugins/RemoteHardwarePlugin.h"
|
2021-01-08 13:15:49 +08:00
|
|
|
#include "plugins/ReplyPlugin.h"
|
2021-02-22 10:39:46 +08:00
|
|
|
#include "plugins/TextMessagePlugin.h"
|
2021-01-08 13:15:49 +08:00
|
|
|
#include "plugins/TextMessagePlugin.h"
|
2021-02-17 13:06:23 +08:00
|
|
|
#include "plugins/RoutingPlugin.h"
|
2021-02-21 14:03:44 +08:00
|
|
|
#include "plugins/AdminPlugin.h"
|
2022-01-04 19:42:28 +01:00
|
|
|
#include "plugins/CannedMessagePlugin.h"
|
2021-02-16 18:07:02 -08:00
|
|
|
#ifndef NO_ESP32
|
2021-11-22 13:18:49 -08:00
|
|
|
#include "plugins/esp32/SerialPlugin.h"
|
2021-01-17 15:59:48 -05:00
|
|
|
#include "plugins/esp32/EnvironmentalMeasurementPlugin.h"
|
2021-02-16 18:46:16 -08:00
|
|
|
#include "plugins/esp32/RangeTestPlugin.h"
|
2021-02-25 08:14:07 -08:00
|
|
|
#include "plugins/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();
|
|
|
|
|
|
|
|
|
|
// 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-01-09 10:08:31 +01:00
|
|
|
rotaryEncoderInterruptImpl1 =
|
2022-01-11 13:12:04 +01:00
|
|
|
new RotaryEncoderInterruptImpl1();
|
2022-01-12 09:26:42 +01:00
|
|
|
rotaryEncoderInterruptImpl1->init();
|
2022-01-11 16:02:55 +01:00
|
|
|
cannedMessagePlugin = new CannedMessagePlugin();
|
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-02-21 11:09:58 -05:00
|
|
|
new EnvironmentalMeasurementPlugin();
|
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
|
|
|
}
|