42#define OTA_CBOR_CLIENTTOKEN_KEY          "c"  
   43#define OTA_CBOR_FILEID_KEY               "f"  
   44#define OTA_CBOR_BLOCKSIZE_KEY            "l"  
   45#define OTA_CBOR_BLOCKOFFSET_KEY          "o"  
   46#define OTA_CBOR_BLOCKBITMAP_KEY          "b"  
   47#define OTA_CBOR_STREAMDESCRIPTION_KEY    "d"  
   48#define OTA_CBOR_STREAMFILES_KEY          "r"  
   49#define OTA_CBOR_FILESIZE_KEY             "z"  
   50#define OTA_CBOR_BLOCKID_KEY              "i"  
   51#define OTA_CBOR_BLOCKPAYLOAD_KEY         "p"  
   52#define OTA_CBOR_NUMBEROFBLOCKS_KEY       "n"  
   63                                               size_t * pPayloadSize );
 
   71                                              size_t messageBufferSize,
 
   72                                              size_t * pEncodedMessageSize,
 
   73                                              const char * pClientToken,
 
   77                                              uint8_t * pBlockBitmap,
 
   78                                              size_t blockBitmapSize,
 
   79                                              int32_t numOfBlocksRequested );
 
bool OTA_CBOR_Decode_GetStreamResponseMessage(const uint8_t *pMessageBuffer, size_t messageSize, int32_t *pFileId, int32_t *pBlockId, int32_t *pBlockSize, uint8_t **pPayload, size_t *pPayloadSize)
Decode a Get Stream response message from AWS IoT OTA.
Definition: ota_cbor.c:74
 
bool OTA_CBOR_Encode_GetStreamRequestMessage(uint8_t *pMessageBuffer, size_t messageBufferSize, size_t *pEncodedMessageSize, const char *pClientToken, int32_t fileId, int32_t blockSize, int32_t blockOffset, uint8_t *pBlockBitmap, size_t blockBitmapSize, int32_t numOfBlocksRequested)
Create an encoded Get Stream Request message for the AWS IoT OTA service. The service allows block co...
Definition: ota_cbor.c:236