连接百度云iot_hub是不用这个吗?如果要用到这个,这里面的那个证书怎么编程啊?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
证书是百度云下载的啊,格式是 .pem的 我用PC的工具能轻松连接啊,但是用板子就不行,总是显示错误-5
了解了,你看到的-5是MQTT返回的错误,不是SIMPLELINK的。
错误是MQTT_PACKET_ERR_PKT_AVL,
DEMO程序调用了一个MQTT的库,你可以试试把MQTT的代码合到你的工程里面再调试一下看看。