31#ifndef _MQTT_SN_CLIENT_TRANSPORT_H
32#define _MQTT_SN_CLIENT_TRANSPORT_H
44error_t mqttSnClientOpenConnection(MqttSnClientContext *context, bool_t secure);
45error_t mqttSnClientEstablishConnection(MqttSnClientContext *context);
46error_t mqttSnClientShutdownConnection(MqttSnClientContext *context);
47void mqttSnClientCloseConnection(MqttSnClientContext *context);
49error_t mqttSnClientBroadcastDatagram(MqttSnClientContext *context,
50 const IpAddr *destIpAddr, uint16_t destPort,
const void *data,
53error_t mqttSnClientSendDatagram(MqttSnClientContext *context,
54 const void *data,
size_t length);
56error_t mqttSnClientReceiveDatagram(MqttSnClientContext *context,
57 IpAddr *srcIpAddr, uint16_t *srcPort,
void *data,
size_t size,
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