STM32U5 Rust and AWS IoT Core: From Per-Message TLS Connections to a Persistent Session
The revised implementation of the publish_aws_iot_payload() function establishes a persistent MQTT connection over TLS, enabling ongoing telemetry message transmission without repeated handshake processes. By keeping the connection alive and sending PINGREQs as needed, the firmware enhances efficiency and reliability, with successful communications verified on the STM32U5 board.