linux/src/oneM2M.c
/**
 * @brief create mqtt
 * @param[in] host the hostname or ip address of the broker to connect to.
 * @param[in] port the network port to connect to.  Usually 1883.
 * @param[in] keepalive the number of seconds after which the broker should send a PING message to the client if no other messages have been exchanged in that time. 
 * @param[in] userName authentication user name
 * @param[in] password authentication password
 * @param[in] enableServerCertAuth True/False option to enable verification of the server certificate
 * @param[in] subscribeTopic mqtt topic
 * @param[in] subscribeTopicSize mqtt topic size
 * @param[in] publishTopic publish topic
 * @param[in] clientID The client identifier passed to the server when the client connects to it.
 * @return the return code of the connection response
 */
@brief create mqtt
@param[in] host the hostname or ip address of the broker to connect to.
@param[in] port the network port to connect to.
@brief create mqtt @param [ in ] host the hostname or ip address of the broker to connect to . @param [ in ] port the network port to connect to .
int tpSDKCreate(char* host, int port, int keepalive, char* userName, char* password,
        int enableServerCertAuth, char* subscribeTopic[], int subscribeTopicSize, char* publishTopic, char* clientID) {
    int rc = MQTTAsyncCreate(host, port, keepalive, userName, password, enableServerCertAuth, 
        subscribeTopic, subscribeTopicSize, publishTopic, NULL, 1, clientID);
    return rc;
}
int tpSDKCreate ( char * host , int port , int keepalive , char * userName , char * password , int enableServerCertAuth , char * subscribeTopic [ ] , int subscribeTopicSize , char * publishTopic , char * clientID ) { int rc = MQTTAsyncCreate ( host , port , keepalive , userName , password , enableServerCertAuth , subscribeTopic , subscribeTopicSize , publishTopic , NULL , 1 , clientID ) ; return rc ; }
@brief create mqtt
 @param[in] host the hostname or ip address of the broker to connect to.
@brief create mqtt @param [ in ] host the hostname or ip address of the broker to connect to .