debug works in interrupt mode now, needs some refactoring, MBUSYield stops the whole system

This commit is contained in:
2020-11-10 22:18:51 +01:00
parent 15d8afa207
commit c98c5dd8a5
4 changed files with 23 additions and 44 deletions

View File

@ -2,6 +2,7 @@
#include <logger.h>
#include <PontCoopScheduler.h>
#include <wizHelper.h>
#include <show.h>
#include <stdint.h>
#include <string.h>
@ -61,7 +62,10 @@ static void messageArrived(MessageData* md)
}
static void mqttHandler(void *handle) {
// MQTTYield(&mqttClient, data.keepAliveInterval);
show(DEBUG_2, ON);
MQTTYield(&mqttClient, data.keepAliveInterval);
show(DEBUG_2, OFF);
}
void mqttCommInit(void *handle) {