mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-25 14:56:11 +02:00
Radio changes, MQTT fixes
* consolidated (?) proposals from beegee3 * timing now 410microsesonds
This commit is contained in:
parent
1f0f8b904a
commit
24bfb43b02
4 changed files with 50 additions and 49 deletions
|
@ -51,6 +51,7 @@ void app::setup() {
|
|||
|
||||
mMiPayload.setup(this, &mSys, &mStat, mConfig->nrf.maxRetransPerPyld, &mTimestamp);
|
||||
mMiPayload.enableSerialDebug(mConfig->serial.debug);
|
||||
mMiPayload.addPayloadListener(std::bind(&app::payloadEventListener, this, std::placeholders::_1));
|
||||
|
||||
// DBGPRINTLN("--- after payload");
|
||||
// DBGPRINTLN(String(ESP.getFreeHeap()));
|
||||
|
@ -67,6 +68,7 @@ void app::setup() {
|
|||
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));
|
||||
mMiPayload.addAlarmListener(std::bind(&PubMqttType::alarmEventListener, &mMqtt, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3));
|
||||
}
|
||||
#endif
|
||||
setupLed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue