21 #if !defined(MQTTPROTOCOLOUT_H) 22 #define MQTTPROTOCOLOUT_H 32 #define MQTT_DEFAULT_PORT 1883 33 #define SECURE_MQTT_DEFAULT_PORT 8883 34 #define WS_DEFAULT_PORT 80 39 #if defined(__GNUC__) && defined(__linux__) 47 #if defined(__GNUC__) && defined(__linux__)
int MQTTProtocol_connect(const char *ip_address, Clients *acClients, int websocket, int MQTTVersion, MQTTProperties *connectProperties, MQTTProperties *willProperties)
int MQTTProtocol_unsubscribe(Clients *client, List *topics, int msgID, MQTTProperties *props)
void MQTTProtocol_reconnect(const char *ip_address, Clients *client)
int MQTTProtocol_handlePingresps(void *pack, int sock)
int MQTTProtocol_handleSubacks(void *pack, int sock)
size_t MQTTProtocol_addressPort(const char *uri, int *port, const char **topic, int default_port)
int MQTTProtocol_handleUnsubacks(void *pack, int sock)
int MQTTProtocol_subscribe(Clients *client, List *topics, List *qoss, int msgID, MQTTSubscribe_options *opts, MQTTProperties *props)