diff --git a/.github/workflows/aunit.yml b/.github/workflows/aunit.yml index 117bccd..a23ac7f 100644 --- a/.github/workflows/aunit.yml +++ b/.github/workflows/aunit.yml @@ -21,6 +21,7 @@ jobs: git clone https://github.com/bxparks/AceRoutine git clone https://github.com/bxparks/AUnit git clone https://github.com/bxparks/AceCommon + git clone https://github.com/hsaturn/EspMock - name: Verify tests run: | make -C tests diff --git a/src/TinyMqtt.h b/src/TinyMqtt.h index 9fe9641..1eb23ec 100644 --- a/src/TinyMqtt.h +++ b/src/TinyMqtt.h @@ -158,8 +158,8 @@ class MqttClient void dump() { uint32_t ms=millis(); - Serial << "MqttClient (" << clientId.c_str() << ") p=" << (int32_t) parent - << " c=" << (int32_t)client << (connected() ? " ON " : " OFF"); + Serial << "MqttClient (" << clientId.c_str() << ") p=" << (uint64_t) parent + << " c=" << (uint64_t)client << (connected() ? " ON " : " OFF"); Serial << ", alive=" << (uint32_t)alive << '/' << ms << ", ka=" << keep_alive; Serial << (client && client->connected() ? "" : "dis") << "connected"; message.hexdump("entrant msg"); diff --git a/tests/local-tests/Makefile b/tests/local-tests/Makefile index df1abdb..d6ab7a3 100644 --- a/tests/local-tests/Makefile +++ b/tests/local-tests/Makefile @@ -2,5 +2,5 @@ # Makefile to compile and run Arduino programs natively on Linux or MacOS. APP_NAME := local-tests -ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt ESP8266WiFi +ARDUINO_LIBS := AUnit AceCommon AceTime TinyMqtt EspMock include ../../../EpoxyDuino/EpoxyDuino.mk