#include "configuration.h" #include "input/InputBroker.h" #include "input/RotaryEncoderInterruptImpl1.h" #include "plugins/AdminPlugin.h" #include "plugins/CannedMessagePlugin.h" #include "plugins/ExternalNotificationPlugin.h" #include "plugins/GroupPlugin.h" #include "plugins/NodeInfoPlugin.h" #include "plugins/PositionPlugin.h" #include "plugins/RemoteHardwarePlugin.h" #include "plugins/ReplyPlugin.h" #include "plugins/RoutingPlugin.h" #include "plugins/TextMessagePlugin.h" #ifndef PORTDUINO #include "plugins/EnvironmentalMeasurement/EnvironmentalMeasurementPlugin.h" #endif #ifndef NO_ESP32 #include "plugins/esp32/RangeTestPlugin.h" #include "plugins/esp32/SerialPlugin.h" #include "plugins/esp32/StoreForwardPlugin.h" #endif /** * Create plugin instances here. If you are adding a new plugin, you must 'new' it here (or somewhere else) */ void setupPlugins() { inputBroker = new InputBroker(); adminPlugin = new AdminPlugin(); nodeInfoPlugin = new NodeInfoPlugin(); positionPlugin = new PositionPlugin(); textMessagePlugin = new TextMessagePlugin(); groupPlugin = new GroupPlugin(); // 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(); rotaryEncoderInterruptImpl1 = new RotaryEncoderInterruptImpl1(); rotaryEncoderInterruptImpl1->init(); cannedMessagePlugin = new CannedMessagePlugin(); #ifndef PORTDUINO new EnvironmentalMeasurementPlugin(); #endif #ifndef NO_ESP32 // Only run on an esp32 based device. /* Maintained by MC Hamster (Jm Casler) jm@casler.org */ new SerialPlugin(); new ExternalNotificationPlugin(); // rangeTestPlugin = new RangeTestPlugin(); storeForwardPlugin = new StoreForwardPlugin(); new RangeTestPlugin(); // new StoreForwardPlugin(); #endif // 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(); }