We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wenn der Inverter einen Alarm meldet, aber MQTT nicht enabled ist, gibt's eine user exception.
08:54:34.001 > I: Alarm #2 'DTU command failed' start: 07:53:27, end: 07:53:27 08:54:34.006 > 08:54:34.006 > User exception (panic/abort/assert) 08:54:34.009 > --------------- CUT HERE FOR EXCEPTION DECODER ---------------
Liegt meines erachtens an folgenden Stellen:
if(AlarmData == mPayload[iv->id].txCmd) { uint8_t i = 0; uint16_t code; uint32_t start, end; while(1) { code = iv->parseAlarmLog(i++, payload, payloadLen, &start, &end); if(0 == code) break; (mCbAlarm)(code, start, end); yield(); }
addAlarmListener
mMqttEnabled = (mConfig->mqtt.broker[0] > 0); if (mMqttEnabled) { mMqtt.setup(&mConfig->mqtt, mConfig->sys.deviceName, mVersion, mSys, &mTimestamp); mMqtt.setSubscriptionCb(std::bind(&app::mqttSubRxCb, this, std::placeholders::_1)); mPayload.addAlarmListener(std::bind(&PubMqttType::alarmEventListener, &mMqtt, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3)); }
payload.h @ 60
void addAlarmListener(alarmListenerType cb) { mCbAlarm = cb; }
Fazit: Hat man keinen mqtt broker dann Sprung in's Nirvana.
p.s. Bei der Methode notfiy (payload.h@292) fehlt die Abfrage auch.
void notify(uint16_t code, uint32_t start, uint32_t endTime) { (mCbAlarm)(code, start, endTime); }
The text was updated successfully, but these errors were encountered:
mCbAlarm mit NULL initialisieren und an den beiden genannten payload Stellen darauf abfragen, ist in #652
mCbAlarm
Sorry, something went wrong.
fixed mixed reset flags #648
a9179ec
fixed `mCbAlarm` if MQTT is not used #653
lumapu
No branches or pull requests
Wenn der Inverter einen Alarm meldet, aber MQTT nicht enabled ist, gibt's eine user exception.
Liegt meines erachtens an folgenden Stellen:
addAlarmListener
gefundenpayload.h @ 60
Fazit:
Hat man keinen mqtt broker dann Sprung in's Nirvana.
p.s.
Bei der Methode notfiy (payload.h@292) fehlt die Abfrage auch.
The text was updated successfully, but these errors were encountered: