- Added info of how to see outputs of broker activity in examples, version level up to 1.0.5, to arduino manager.
-
Adding Steeve suggest esp32 logger library:
- It can only to use with a precompile core debug level:
- Arduino IDE: set using, tools/Core Debug Level
- VSCODE: set using, arduino.json and adding ":
"buildPreferences": [ ["build.extra_flags", "-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE"] ]
- Platformio: set using:
[env:esp32] platform = espressif32 framework = arduino board = esp32dev lib_deps = alexcajas/WrapperFreeRTOS @ ^1.0.1 alexcajas/EmbeddedMqttBroker @ 1.0.4-qos0 build_flags = -DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_INFO
- I'm triying to set core debug level in code, but arduino framework use compile time configuration of debug level, for otherwise, I'm triyed:
#ifdef CORE_DEBUG_LEVEL #undef CORE_DEBUG_LEVEL #endif #define CORE_DEBUG_LEVEL 3 #ifdef LOG_LOCAL_LEVEL #undef LOG_LOCAL_LEVEL #endif #define LOG_LOCAL_LEVEL 3 . . . setup(){ esp_log_level_set("*",ESP_LOG_INFO); # this line don't work. }
- But is not posible set core debug level in runtime.
- It can only to use with a precompile core debug level:
Issue 4 closed:
-
Adding: wait to mqtt packet from client in NewClientListenerTask:
- On average RTT at most 500 millisecs
- vTaskdelay(100) worst the efficiency of the broker
- vTaskDelay(10) just add a delay in the connections.
-
Add test_pub and test_sub
- Issue 5 closed.
- Add test_pub and test_sub (moved to v1.0.4 - qos0 )
- Added name space in project
- This version implements only qos 0
- uploaded MqttBroker::publishMessage():
- Changed std::map clientSubscribed to std::vector clientSubscribedIds to improve memory use.
- Changed all methods that colaborate in the search of mqttClients subscribeds.