MQTT : mqtt_client_connect() don't set user and password !
Hello,
After loosing days trying to implement paho mqtt with lwip and freeRTOS on a nucleo-F207ZG, I restarted from scratch and try do implement it in bare-metal mode.
After a few hour of debug, using wireshark and mosquitto on a PC :
- Connecting to the broker as anonymous works
- Connecting to the broker with user/pwd fails.
Wireshark shows that there is no user/pwd on the CONNECT packet and the associated flags are reset.
The official mqtt_client_connect() looks quite strange : it does not take care of the eventual user/pwd provided in argument (mqtt_connect_client_info_t *client_info)
Flags are set to MQTT_CONNECT_FLAG_CLEAN_SESSION, and user/pwd are never used by this function.
Is the provided MQTT file is just a demo file with limited functionalities ?
Thank you
Regards
