TI中文支持网
TI专业的中文技术问题搜集分享网站

cc3220sf不能连接mqtt服务器,例程未提供服务器密码输入

按照例程只找到了服务器地址 端口号 但并未提供服务器登陆密码导致不能连接服务器,

/* Defining Broker IP address and port Number                                */
//#define SERVER_ADDRESS           "messagesight.demos.ibm.com"
#define SERVER_ADDRESS           "m2m.eclipse.org"
#define SERVER_IP_ADDRESS        "203.57.229.214"
#define PORT_NUMBER              61613
#define SECURED_PORT_NUMBER      8883
#define LOOPBACK_PORT            1882

例程中包含了clientusername不明白client为何要密码的意义?

/* Client ID                                                                 */
/* If ClientId isn't set, the MAC address of the device will be copied into  */
/* the ClientID parameter.                                                   */
char ClientId[13] = {'\0'};

/* Client User Name and Password                                             */
const char *ClientUsername = "administrator";
const char *ClientPassword = "";

Viki Shi:

请参考WIFI MQTT academy: dev.ti.com/…/

Ensure that the Username and Password fields are left blank. By default, the MQTT client application does not set the Client Username and Client Password.

jin li7:

回复 Viki Shi:

I want to know where are the broker's username and password fields to connect broker,not the client username and client

jin li7:

回复 Viki Shi:

The above codes are thus from WIFI MQTTacademy I‘ve already used

convex j:

回复 jin li7:

打开这个定义即可

#define CLNT_USR_PWD 

赞(0)
未经允许不得转载:TI中文支持网 » cc3220sf不能连接mqtt服务器,例程未提供服务器密码输入
分享到: 更多 (0)