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.

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 = "";