24 #ifndef IOT_BLE_MQTT_TRANSPORT_H 25 #define IOT_BLE_MQTT_TRANSPORT_H 33 #include "stream_buffer.h" 35 #include "iot_ble_mqtt_transport_config.h" 37 #include "iot_ble_data_transfer.h" 43 typedef struct BleTransportParams
45 IotBleDataTransferChannel_t * pChannel;
46 StreamBufferHandle_t xStreamBuffer;
47 StaticStreamBuffer_t xStreamBufferStruct;
49 TickType_t receiveTimeout;
57 struct NetworkContext;
58 typedef struct NetworkContext NetworkContext_t;
69 bool IotBleMqttTransportInit(
void * pBuffer,
71 NetworkContext_t * pContext );
78 void IotBleMqttTransportCleanup(
const NetworkContext_t * pContext );
86 MQTTBLEStatus_t IotBleMqttTransportAcceptData(
const NetworkContext_t * pContext );
96 int32_t IotBleMqttTransportSend( NetworkContext_t * pContext,
98 size_t bytesToWrite );
108 int32_t IotBleMqttTransportReceive( NetworkContext_t * pContext,
110 size_t bytesToRead );
119 void IotBleMqttTransportSetReceiveTimeout( NetworkContext_t * pContext,
120 uint32_t timeoutMS );
File exposes types and serializer, deserializer APIs for sending and receiving MQTT messages over BLE...
Definition of the transport parameters for the transport interface implementation that uses MQTT over...
Definition: iot_ble_mqtt_transport.h:43
MQTTBLEStatus_t
Definition: iot_ble_mqtt_serialize.h:249
Definition: iot_ble_mqtt_serialize.h:195