31#ifndef _MQTT_CLIENT_TRANSPORT_H
32#define _MQTT_CLIENT_TRANSPORT_H
44error_t mqttClientOpenConnection(MqttClientContext *context);
46error_t mqttClientEstablishConnection(MqttClientContext *context,
47 const IpAddr *serverIpAddr, uint16_t serverPort);
49error_t mqttClientShutdownConnection(MqttClientContext *context);
51void mqttClientCloseConnection(MqttClientContext *context);
53error_t mqttClientSendData(MqttClientContext *context,
54 const void *data,
size_t length,
size_t *written, uint_t flags);
56error_t mqttClientReceiveData(MqttClientContext *context,
57 void *data,
size_t size,
size_t *received, uint_t flags);
error_t
Error codes.
Definition error.h:43
uint32_t systime_t
System time.
Definition os_port_none.h:90
IP network address.
Definition ip.h:72