I am tyring to connect to MQTT broker using the qapi APIs (qapi_Net_MQTTc_*()). I am getting respose -20034 "Bad user name or password".
With the same MQTT broker end point and the same credentials I am able to connect via MQTT Explorer client. (http://mqtt-explorer.com/)
Is there any limitation on the password size in "qapi_Net_MQTTc_Set_Username_Password()". For me the password size is around 512 Bytes.