- Refactored the error handling logic to use an asynchronous function for resubscribing to MQTT topics after an error occurs. - Added detailed logging for LWT message processing and device serial number updates. - Ensured that the periodic data request task is initiated after resubscribing to the necessary topics.
21 KiB
21 KiB