mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-28 21:57:11 +02:00
ZE optimize Code, Log
This commit is contained in:
parent
bc91c0c94f
commit
45b1d657ce
4 changed files with 375 additions and 330 deletions
|
@ -74,7 +74,7 @@ void app::setup() {
|
|||
#if defined(PLUGIN_ZEROEXPORT) || defined(ENABLE_MQTT)
|
||||
mCommunication.addPowerLimitAckListener([this] (Inverter<> *iv) {
|
||||
#if defined(PLUGIN_ZEROEXPORT)
|
||||
mZeroExport.resetWaitLimitAck(iv);
|
||||
mZeroExport.eventAckSetLimit(iv);
|
||||
#endif /*PLUGIN_ZEROEXPORT*/
|
||||
#if defined(ENABLE_MQTT)
|
||||
mMqtt.setPowerLimitAck(iv);
|
||||
|
@ -83,17 +83,17 @@ void app::setup() {
|
|||
#endif /*defined(PLUGIN_ZEROEXPORT) || defined(ENABLE_MQTT)*/
|
||||
#if defined(PLUGIN_ZEROEXPORT)
|
||||
mCommunication.addPowerPowerAckListener([this] (Inverter<> *iv) {
|
||||
mZeroExport.resetWaitPowerAck(iv);
|
||||
mZeroExport.eventAckSetPower(iv);
|
||||
});
|
||||
#endif /*PLUGIN_ZEROEXPORT*/
|
||||
#if defined(PLUGIN_ZEROEXPORT)
|
||||
mCommunication.addPowerRebootAckListener([this] (Inverter<> *iv) {
|
||||
mZeroExport.resetWaitRebootAck(iv);
|
||||
mZeroExport.eventAckSetReboot(iv);
|
||||
});
|
||||
#endif /*PLUGIN_ZEROEXPORT*/
|
||||
#if defined(PLUGIN_ZEROEXPORT)
|
||||
mCommunication.addNewDataListener([this] (Inverter<> *iv) {
|
||||
mZeroExport.newDataAvailable(iv);
|
||||
mZeroExport.eventNewDataAvailable(iv);
|
||||
});
|
||||
#endif /*PLUGIN_ZEROEXPORT*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue