mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-14 00:21:44 +02:00
0.8.950002
This commit is contained in:
parent
d24c4bdb23
commit
f181e12a29
12 changed files with 580 additions and 414 deletions
13
src/app.cpp
13
src/app.cpp
|
@ -83,6 +83,17 @@ void app::setup() {
|
|||
#endif
|
||||
});
|
||||
#endif /*defined(PLUGIN_ZEROEXPORT) || defined(ENABLE_MQTT)*/
|
||||
#if defined(PLUGIN_ZEROEXPORT)
|
||||
mCommunication.addPowerPowerAckListener([this] (Inverter<> *iv) {
|
||||
mZeroExport.resetWaitPowerAck(iv);
|
||||
});
|
||||
#endif /*PLUGIN_ZEROEXPORT*/
|
||||
#if defined(PLUGIN_ZEROEXPORT)
|
||||
mCommunication.addPowerRebootAckListener([this] (Inverter<> *iv) {
|
||||
mZeroExport.resetWaitRebootAck(iv);
|
||||
});
|
||||
#endif /*PLUGIN_ZEROEXPORT*/
|
||||
|
||||
mSys.setup(&mTimestamp, &mConfig->inst, this);
|
||||
for (uint8_t i = 0; i < MAX_NUM_INVERTERS; i++) {
|
||||
initInverter(i);
|
||||
|
@ -132,7 +143,7 @@ void app::setup() {
|
|||
// Plugin ZeroExport
|
||||
#if defined(PLUGIN_ZEROEXPORT)
|
||||
mZeroExport.setup(&mConfig->plugin.zeroExport, &mSys, mConfig, &mApi, &mMqtt);
|
||||
#endif
|
||||
#endif /*PLUGIN_ZEROEXPORT*/
|
||||
// Plugin ZeroExport - Ende
|
||||
|
||||
#if defined(ENABLE_HISTORY)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue