This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add the username flag to the CONNECT Variable Header*/ | |
static char user_flag(char flag) | |
{ | |
char usr_flag = (char)0x80; | |
flag |= usr_flag; | |
return flag; | |
} | |
/* mqtt_connect_user send the CONNECT command with the | |
* user supplied*/ |