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.
工具/软件:Code Composer Studio
我一直在尝试使用 CC3220s Launchpad 和 Code Composer Studio cc32xx SDK、WATX_mqttclient_CC3220S_Launchxl_tirtos_ccs 项目向 IBM 物联网平台发送消息。
------
我可以将消息发送到快速启动代理。
但是、我得到:
设备验证的用户 ID ()无效:
ClientID='d:u45vsd:ti-simplelink:9884e34e0611'、
ClientIP=178.241.108.68
IBM Watson IOT Platform 上的连接日志消息
CONNACK:
连接错误:5.
连接到代理失败,错误代码:-5
电桥断开
CCS 串行终端错误
我对 CCS mqttclient 代码和 IBM Watson IOT Platform 进行了以下更改:
组织 ID:u45vsd
设备类型:ti-simplelink
设备 ID:9884e34e0611
验证方法:use-token-auth
身份验证令牌:-gQSLJlavVf-8x (读数
#define SSID_NAME "Netmaster EB75-G" #define SECURITY_KEY "* PASSWORD*#define SECURITY_TYPE SL_WLAN_SEC_TYPE_WPA_WPA2
define SERVER_ADDRESS "u45vsd.messaging.internetofthings.ibmcloud.com" char ClientID[64]="d:u45vsd:ti-simplelink:9884e34e0611"; const char *客户端用户名="use-token-auth"; const char * 客户端密码="-gQSLJlavVf-8x";macintf (ID、"mac-token-auth"、"v02x]、"mac02x]、macelink[v023]、mac023]、macu%02x] MacAddress[4]、macAddress[5]);
我缺少什么?
我们将感谢您的任何帮助。
提前感谢。
您好,Micheal;
感谢您的关注和帮助...
不幸的是、它仍然是相同的。
类 ID 显示为 Device 而非 Gateway。
您好;
我已通过以下取消注释行解决了我的问题:
#define CLNT_USR_PWD #define subscribe
BR