30 #ifndef _IOT_MQTT_LIGHTWEIGHT_H_ 31 #define _IOT_MQTT_LIGHTWEIGHT_H_ 34 #include "iot_config.h" 111 size_t * pRemainingLength,
112 size_t * pPacketSize );
161 size_t remainingLength,
209 size_t subscriptionCount,
210 size_t * pRemainingLength,
211 size_t * pPacketSize );
273 size_t subscriptionCount,
274 size_t remainingLength,
275 uint16_t * pPacketIdentifier,
336 size_t subscriptionCount,
337 size_t remainingLength,
338 uint16_t * pPacketIdentifier,
382 size_t * pRemainingLength,
383 size_t * pPacketSize );
447 size_t remainingLength,
448 uint16_t * pPacketIdentifier,
449 uint8_t ** pPacketIdentifierHigh,
IotMqttError_t
Return codes of MQTT functions.
Definition: iot_mqtt_types.h:106
IotMqttError_t IotMqtt_DeserializePublish(IotMqttPacketInfo_t *pMqttPacket)
Deserialize incoming publish packet.
Definition: iot_mqtt_lightweight_api.c:1027
IotMqttError_t IotMqtt_GetSubscriptionPacketSize(IotMqttOperationType_t type, const IotMqttSubscription_t *pSubscriptionList, size_t subscriptionCount, size_t *pRemainingLength, size_t *pPacketSize)
Calculate the size and "Remaining length" of a SUBSCRIBE or UNSUBSCRIBE packet generated from the giv...
Definition: iot_mqtt_lightweight_api.c:732
IotMqttError_t IotMqtt_SerializePingreq(uint8_t *pBuffer, size_t bufferSize)
Generate a PINGREQ packet.
Definition: iot_mqtt_lightweight_api.c:999
IotMqttError_t IotMqtt_GetIncomingMQTTPacketTypeAndLength(IotMqttPacketInfo_t *pIncomingPacket, IotMqttGetNextByte_t getNextByte, IotNetworkConnection_t pNetworkConnection)
Extract MQTT packet type and length from incoming packet.
Definition: iot_mqtt_lightweight_api.c:815
MQTT packet details.
Definition: iot_mqtt_types.h:713
IotMqttError_t IotMqtt_GetPublishPacketSize(const IotMqttPublishInfo_t *pPublishInfo, size_t *pRemainingLength, size_t *pPacketSize)
Calculate the size and "Remaining length" of a PUBLISH packet generated from the given parameters...
Definition: iot_mqtt_lightweight_api.c:854
IotMqttError_t IotMqtt_SerializeUnsubscribe(const IotMqttSubscription_t *pSubscriptionList, size_t subscriptionCount, size_t remainingLength, uint16_t *pPacketIdentifier, uint8_t *pBuffer, size_t bufferSize)
Generate a UNSUBSCRIBE packet from the given parameters.
Definition: iot_mqtt_lightweight_api.c:930
IotMqttError_t(* IotMqttGetNextByte_t)(IotNetworkConnection_t pNetworkContext, uint8_t *pNextByte)
Function pointer to read the next available byte on a network connection.
Definition: iot_mqtt_types.h:845
Information on a PUBLISH message.
Definition: iot_mqtt_types.h:395
MQTT subscription.
Definition: iot_mqtt_types.h:553
MQTT connection details.
Definition: iot_mqtt_types.h:589
IotMqttError_t IotMqtt_SerializeConnect(const IotMqttConnectInfo_t *pConnectInfo, size_t remainingLength, uint8_t *pBuffer, size_t bufferSize)
Generate a CONNECT packet from the given parameters.
Definition: iot_mqtt_lightweight_api.c:691
IotMqttError_t IotMqtt_SerializePublish(const IotMqttPublishInfo_t *pPublishInfo, size_t remainingLength, uint16_t *pPacketIdentifier, uint8_t **pPacketIdentifierHigh, uint8_t *pBuffer, size_t bufferSize)
Generate a PUBLISH packet from the given parameters.
Definition: iot_mqtt_lightweight_api.c:889
IotMqttError_t IotMqtt_SerializeSubscribe(const IotMqttSubscription_t *pSubscriptionList, size_t subscriptionCount, size_t remainingLength, uint16_t *pPacketIdentifier, uint8_t *pBuffer, size_t bufferSize)
Generate a SUBSCRIBE packet from the given parameters.
Definition: iot_mqtt_lightweight_api.c:775
IotMqttError_t IotMqtt_SerializeDisconnect(uint8_t *pBuffer, size_t bufferSize)
Generate a DISCONNECT packet.
Definition: iot_mqtt_lightweight_api.c:970
IotMqttOperationType_t
Types of MQTT operations.
Definition: iot_mqtt_types.h:280
IotMqttError_t IotMqtt_DeserializeResponse(IotMqttPacketInfo_t *pMqttPacket)
Deserialize incoming ack packets.
Definition: iot_mqtt_lightweight_api.c:1063
IotMqttError_t IotMqtt_GetConnectPacketSize(const IotMqttConnectInfo_t *pConnectInfo, size_t *pRemainingLength, size_t *pPacketSize)
Calculate the size and "Remaining length" of a CONNECT packet generated from the given parameters...
Definition: iot_mqtt_lightweight_api.c:656