AWS IoT Over-the-air Update  v3.1.0
Client library for AWS IoT OTA
ota_private.h
Go to the documentation of this file.
1 /*
2  * AWS IoT Over-the-air Update v3.1.0
3  * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of
6  * this software and associated documentation files (the "Software"), to deal in
7  * the Software without restriction, including without limitation the rights to
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9  * the Software, and to permit persons to whom the Software is furnished to do so,
10  * subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  */
22 
29 #ifndef OTA_PRIVATE_H
30 #define OTA_PRIVATE_H
31 
32 /* *INDENT-OFF* */
33 #ifdef __cplusplus
34  extern "C" {
35 #endif
36 /* *INDENT-ON* */
37 
38 /* Standard includes. */
39 /* For FILE type in OtaFileContext_t.*/
40 #include <stdio.h>
41 #include <stdint.h>
42 #include <stdbool.h>
43 
44 /* OTA_DO_NOT_USE_CUSTOM_CONFIG allows building the OTA library
45  * without a custom config. If a custom config is provided, the
46  * OTA_DO_NOT_USE_CUSTOM_CONFIG macro should not be defined. */
47 #ifndef OTA_DO_NOT_USE_CUSTOM_CONFIG
48  #include "ota_config.h"
49 #endif
50 
51 /* Include config defaults header to get default values of configs not defined
52  * in ota_config.h file. */
53 #include "ota_config_defaults.h"
54 
59 /* General constants. */
60 #define LOG2_BITS_PER_BYTE 3U
61 #define BITS_PER_BYTE ( ( uint32_t ) 1U << LOG2_BITS_PER_BYTE )
62 #define OTA_FILE_BLOCK_SIZE ( ( uint32_t ) 1U << otaconfigLOG2_FILE_BLOCK_SIZE )
63 #define OTA_MAX_FILES 1U
64 #define OTA_MAX_BLOCK_BITMAP_SIZE 128U
65 #define OTA_REQUEST_MSG_MAX_SIZE ( 3U * OTA_MAX_BLOCK_BITMAP_SIZE )
66 #define OTA_REQUEST_URL_MAX_SIZE ( 1500 )
67 #define OTA_ERASED_BLOCKS_VAL 0xffU
75 /* Job document parser constants. */
76 #define OTA_MAX_JSON_TOKENS 64U
77 #define OTA_MAX_JSON_STR_LEN 256U
78 #define OTA_DOC_MODEL_MAX_PARAMS 32U
79 #define OTA_JOB_PARAM_REQUIRED ( bool ) true
80 #define OTA_JOB_PARAM_OPTIONAL ( bool ) false
81 #define OTA_DONT_STORE_PARAM 0xffff
82 #define OTA_STORE_NESTED_JSON 0x1fffU
83 #define OTA_DATA_BLOCK_SIZE ( ( 1U << otaconfigLOG2_FILE_BLOCK_SIZE ) + OTA_REQUEST_URL_MAX_SIZE + 30 )
90 /* OTA Agent task event flags. */
91 #define OTA_EVT_MASK_JOB_MSG_READY 0x00000001UL
92 #define OTA_EVT_MASK_DATA_MSG_READY 0x00000002UL
93 #define OTA_EVT_MASK_SHUTDOWN 0x00000004UL
94 #define OTA_EVT_MASK_REQ_TIMEOUT 0x00000008UL
95 #define OTA_EVT_MASK_USER_ABORT 0x000000016UL
96 #define OTA_EVT_MASK_ALL_EVENTS ( OTA_EVT_MASK_JOB_MSG_READY | OTA_EVT_MASK_DATA_MSG_READY | OTA_EVT_MASK_SHUTDOWN | OTA_EVT_MASK_REQ_TIMEOUT | OTA_EVT_MASK_USER_ABORT )
103 #define OTA_NUM_JOB_PARAMS ( 21 )
104 
109 #define OTA_JOB_ID_MAX_SIZE ( 72UL + 1UL )
110 
115 #define OTA_PROTOCOL_BUFFER_SIZE 20U
116 
122 #define kOTA_MaxSignatureSize 256 /* Max bytes supported for a file signature (2048 bit RSA is 256 bytes). */
123 
135 #define OTA_JSON_SEPARATOR "."
136 #define OTA_JSON_CLIENT_TOKEN_KEY "clientToken"
137 #define OTA_JSON_TIMESTAMP_KEY "timestamp"
138 #define OTA_JSON_EXECUTION_KEY "execution"
139 #define OTA_JSON_JOB_ID_KEY OTA_JSON_EXECUTION_KEY OTA_JSON_SEPARATOR "jobId"
140 #define OTA_JSON_STATUS_DETAILS_KEY OTA_JSON_EXECUTION_KEY OTA_JSON_SEPARATOR "statusDetails"
141 #define OTA_JSON_SELF_TEST_KEY OTA_JSON_STATUS_DETAILS_KEY OTA_JSON_SEPARATOR "self_test"
142 #define OTA_JSON_UPDATED_BY_KEY OTA_JSON_STATUS_DETAILS_KEY OTA_JSON_SEPARATOR "updatedBy"
143 #define OTA_JSON_UPDATED_BY_KEY_ONLY "updatedBy"
144 #define OTA_JSON_SELF_TEST_KEY_ONLY "self_test"
145 #define OTA_JSON_JOB_DOC_KEY OTA_JSON_EXECUTION_KEY OTA_JSON_SEPARATOR "jobDocument"
146 #define OTA_JSON_OTA_UNIT_KEY OTA_JSON_JOB_DOC_KEY OTA_JSON_SEPARATOR "afr_ota"
147 #define OTA_JSON_PROTOCOLS_KEY OTA_JSON_OTA_UNIT_KEY OTA_JSON_SEPARATOR "protocols"
148 #define OTA_JSON_FILE_GROUP_KEY OTA_JSON_OTA_UNIT_KEY OTA_JSON_SEPARATOR "files"
149 #define OTA_JSON_STREAM_NAME_KEY OTA_JSON_OTA_UNIT_KEY OTA_JSON_SEPARATOR "streamname"
150 #define OTA_JSON_FILE_PATH_KEY "filepath"
151 #define OTA_JSON_FILE_SIZE_KEY "filesize"
152 #define OTA_JSON_FILE_ID_KEY "fileid"
153 #define OTA_JSON_FILE_ATTRIBUTE_KEY "attr"
154 #define OTA_JSON_FILE_CERT_NAME_KEY "certfile"
155 #define OTA_JSON_UPDATE_DATA_URL_KEY "update_data_url"
156 #define OTA_JSON_AUTH_SCHEME_KEY "auth_scheme"
157 #define OTA_JSON_FILETYPE_KEY "fileType"
167 typedef enum
168 {
183 
189 typedef enum
190 {
209 
215 typedef enum
216 {
217  ModelParamTypeStringCopy,
218  ModelParamTypeStringInDoc, /* Only use this type if you can process before freeing the document memory. */
219  ModelParamTypeObject,
220  ModelParamTypeArray,
221  ModelParamTypeUInt32,
222  ModelParamTypeSigBase64,
223  ModelParamTypeIdent,
224  ModelParamTypeArrayCopy
226 
232 typedef enum
233 {
234  JobReasonReceiving = 0, /* Update progress status. */
235  JobReasonSigCheckPassed, /* Set status details to Self Test Ready. */
236  JobReasonSelfTestActive, /* Set status details to Self Test Active. */
237  JobReasonAccepted, /* Set job state to Succeeded. */
238  JobReasonRejected, /* Set job state to Failed. */
239  JobReasonAborted, /* Set job state to Failed. */
240  NumJobReasons
242 
254 typedef struct
255 {
256  const char * pSrcKey;
257  const bool required;
258  uint16_t pDestOffset;
259  uint16_t pDestSizeOffset;
262 
276 typedef struct
277 {
278  void * contextBase;
279  uint32_t contextSize;
281  uint16_t numModelParams;
285 
290 typedef struct OtaAgentStatistics
291 {
293  uint32_t otaPacketsQueued;
295  uint32_t otaPacketsDropped;
297 
313 typedef enum OtaImageState
314 {
321  OtaLastImageState = OtaImageStateAborted
323 
330 typedef enum OtaPalImageState
331 {
337 
344 typedef enum OtaEvent
345 {
361 
368 typedef struct
369 {
370  uint16_t size;
371  uint8_t data[ kOTA_MaxSignatureSize ];
372 } Sig256_t;
373 
381 typedef struct OtaFileContext
382 {
383  uint8_t * pFilePath;
384  uint16_t filePathMaxSize;
385  #if defined( WIN32 ) || defined( __linux__ )
386  FILE * pFile;
387  #else
388  uint8_t * pFile;
389  #endif
390  uint32_t fileSize;
391  uint32_t blocksRemaining;
392  uint32_t fileAttributes;
393  uint32_t serverFileID;
394  uint8_t * pJobName;
395  uint16_t jobNameMaxSize;
396  uint8_t * pStreamName;
397  uint16_t streamNameMaxSize;
398  uint8_t * pRxBlockBitmap;
400  uint8_t * pCertFilepath;
402  uint8_t * pUpdateUrlPath;
403  uint16_t updateUrlMaxSize;
404  uint8_t * pAuthScheme;
405  uint16_t authSchemeMaxSize;
406  uint32_t updaterVersion;
408  uint8_t * pProtocols;
409  uint16_t protocolMaxSize;
410  uint8_t * pDecodeMem;
411  uint32_t decodeMemMaxSize;
412  uint32_t fileType;
415 
421 typedef struct OtaEventData
422 {
423  uint8_t data[ OTA_DATA_BLOCK_SIZE ];
424  uint32_t dataLength;
425  bool bufferUsed;
427 
433 typedef struct OtaEventMsg
434 {
437 } OtaEventMsg_t;
438 
439 /* *INDENT-OFF* */
440 #ifdef __cplusplus
441  }
442 #endif
443 /* *INDENT-ON* */
444 
445 #endif /* ifndef OTA_PRIVATE_H */
IngestResultFileCloseFail
@ IngestResultFileCloseFail
Definition: ota_private.h:171
JsonDocModel_t::contextSize
uint32_t contextSize
Definition: ota_private.h:279
OtaAgentEventCreateFile
@ OtaAgentEventCreateFile
Event to create a file.
Definition: ota_private.h:350
ota_config_defaults.h
This represents the default values for the configuration macros for the OTA library.
OtaFileContext_t::pJobName
uint8_t * pJobName
The job name associated with this file from the job service.
Definition: ota_private.h:394
JsonDocParam_t
JSON document parameter to store the details of keys and where to store them.
Definition: ota_private.h:255
JsonDocModel_t
JSON document model to store the details of parameters expected in the job document.
Definition: ota_private.h:277
JsonDocModel_t::paramsReceivedBitmap
uint32_t paramsReceivedBitmap
Definition: ota_private.h:282
DocParseErrNullModelPointer
@ DocParseErrNullModelPointer
Definition: ota_private.h:201
OtaFileContext_t::jobNameMaxSize
uint16_t jobNameMaxSize
Maximum size of the job name.
Definition: ota_private.h:395
OtaFileContext_t
OTA File Context Information.
Definition: ota_private.h:382
JsonDocModel_t::paramsRequiredBitmap
uint32_t paramsRequiredBitmap
Definition: ota_private.h:283
OtaImageState_t
OtaImageState_t
OTA Image states.
Definition: ota_private.h:314
OtaAgentEventSuspend
@ OtaAgentEventSuspend
Event to suspend ota task.
Definition: ota_private.h:355
OtaFileContext_t::pUpdateUrlPath
uint8_t * pUpdateUrlPath
Url for the file.
Definition: ota_private.h:402
OtaFileContext_t::decodeMemMaxSize
uint32_t decodeMemMaxSize
Maximum size of the decode memory.
Definition: ota_private.h:411
DocParseErrTooManyParams
@ DocParseErrTooManyParams
Definition: ota_private.h:204
IngestResultSigCheckFail
@ IngestResultSigCheckFail
Definition: ota_private.h:170
OtaFileContext_t::pCertFilepath
uint8_t * pCertFilepath
Pathname of the certificate file used to validate the receive file.
Definition: ota_private.h:400
OtaJobReason_t
OtaJobReason_t
Gives the reason to set for job parsing operation.
Definition: ota_private.h:233
OtaPalImageStatePendingCommit
@ OtaPalImageStatePendingCommit
OTA PAL Image awaiting update.
Definition: ota_private.h:333
OtaFileContext_t::fileSize
uint32_t fileSize
The size of the file in bytes.
Definition: ota_private.h:390
OTA_DATA_BLOCK_SIZE
#define OTA_DATA_BLOCK_SIZE
Header is 19 bytes.
Definition: ota_private.h:83
OtaEventData_t::dataLength
uint32_t dataLength
Definition: ota_private.h:424
OtaFileContext_t::pSignature
Sig256_t * pSignature
Pointer to the file's signature structure.
Definition: ota_private.h:413
DocParseErrUserBufferInsuffcient
@ DocParseErrUserBufferInsuffcient
Definition: ota_private.h:194
JsonDocParam_t::pDestSizeOffset
uint16_t pDestSizeOffset
Definition: ota_private.h:259
OtaAgentStatistics_t
This is the OTA statistics structure to hold useful info.
Definition: ota_private.h:291
DocParseErrOutOfMemory
@ DocParseErrOutOfMemory
Definition: ota_private.h:193
DocParseErrInvalidNumChar
@ DocParseErrInvalidNumChar
Definition: ota_private.h:197
OtaAgentEventStart
@ OtaAgentEventStart
Start the OTA state machine.
Definition: ota_private.h:346
DocParseErr_InvalidJSONBuffer
@ DocParseErr_InvalidJSONBuffer
Definition: ota_private.h:200
OtaFileContext_t::pDecodeMem
uint8_t * pDecodeMem
Decode memory.
Definition: ota_private.h:410
IngestResultWriteBlockFailed
@ IngestResultWriteBlockFailed
Definition: ota_private.h:177
OtaAgentEventRequestFileBlock
@ OtaAgentEventRequestFileBlock
Event to request file blocks.
Definition: ota_private.h:351
IngestResultAccepted_Continue
@ IngestResultAccepted_Continue
Definition: ota_private.h:180
OtaImageStateAccepted
@ OtaImageStateAccepted
The state of the OTA MCU Image post successful download and successful self_test.
Definition: ota_private.h:317
OtaFileContext_t::pAuthScheme
uint8_t * pAuthScheme
Authorization scheme.
Definition: ota_private.h:404
OtaAgentStatistics_t::otaPacketsDropped
uint32_t otaPacketsDropped
Definition: ota_private.h:295
JsonDocModel_t::contextBase
void * contextBase
Definition: ota_private.h:278
DocParseErrUnknown
@ DocParseErrUnknown
Definition: ota_private.h:191
IngestResultFileComplete
@ IngestResultFileComplete
Definition: ota_private.h:169
OtaFileContext_t::pProtocols
uint8_t * pProtocols
Authorization scheme.
Definition: ota_private.h:408
DocParseErrBase64Decode
@ DocParseErrBase64Decode
Definition: ota_private.h:196
OtaAgentEventRequestJobDocument
@ OtaAgentEventRequestJobDocument
Event for requesting job document.
Definition: ota_private.h:348
OtaFileContext_t::pFilePath
uint8_t * pFilePath
Update file pathname.
Definition: ota_private.h:383
OtaAgentEventShutdown
@ OtaAgentEventShutdown
Event to trigger ota shutdown.
Definition: ota_private.h:358
OtaAgentStatistics_t::otaPacketsReceived
uint32_t otaPacketsReceived
Definition: ota_private.h:292
OtaEventData_t
The OTA Agent event and data structures.
Definition: ota_private.h:422
DocParseErrNone
@ DocParseErrNone
Definition: ota_private.h:192
OtaFileContext_t::streamNameMaxSize
uint16_t streamNameMaxSize
Maximum size of the stream name.
Definition: ota_private.h:397
OtaFileContext_t::certFilePathMaxSize
uint16_t certFilePathMaxSize
Maximum certificate path size.
Definition: ota_private.h:401
OtaFileContext_t::fileType
uint32_t fileType
The file type id set when creating the OTA job.
Definition: ota_private.h:412
IngestResultBadData
@ IngestResultBadData
Definition: ota_private.h:176
OtaAgentStatistics_t::otaPacketsQueued
uint32_t otaPacketsQueued
Definition: ota_private.h:293
OtaAgentEventReceivedFileBlock
@ OtaAgentEventReceivedFileBlock
Event to trigger when file block is received.
Definition: ota_private.h:352
OtaAgentEventResume
@ OtaAgentEventResume
Event to resume suspended task.
Definition: ota_private.h:356
DocParseErrDuplicatesNotAllowed
@ DocParseErrDuplicatesNotAllowed
Definition: ota_private.h:198
OtaEventMsg_t::eventId
OtaEvent_t eventId
Definition: ota_private.h:436
OtaFileContext_t::updateUrlMaxSize
uint16_t updateUrlMaxSize
Maximum size of the url.
Definition: ota_private.h:403
OtaAgentStatistics_t::otaPacketsProcessed
uint32_t otaPacketsProcessed
Definition: ota_private.h:294
JsonDocModel_t::pBodyDef
const JsonDocParam_t * pBodyDef
Definition: ota_private.h:280
OtaPalImageStateUnknown
@ OtaPalImageStateUnknown
The initial state of the OTA PAL Image.
Definition: ota_private.h:332
DocParseErrFieldTypeMismatch
@ DocParseErrFieldTypeMismatch
Definition: ota_private.h:195
JsonDocParam_t::required
const bool required
Definition: ota_private.h:257
OtaImageStateUnknown
@ OtaImageStateUnknown
The initial state of the OTA MCU Image.
Definition: ota_private.h:315
OtaEventMsg_t
Stores information about the event message.
Definition: ota_private.h:434
OtaFileContext_t::protocolMaxSize
uint16_t protocolMaxSize
Maximum size of the supported protocols string.
Definition: ota_private.h:409
IngestResultNullInput
@ IngestResultNullInput
Definition: ota_private.h:172
OtaPalImageState_t
OtaPalImageState_t
OTA Platform Image State.
Definition: ota_private.h:331
IngestResultUninitialized
@ IngestResultUninitialized
Definition: ota_private.h:179
JsonDocParam_t::modelParamType
const ModelParamType_t modelParamType
Definition: ota_private.h:260
OtaAgentEventCloseFile
@ OtaAgentEventCloseFile
Event to trigger closing file.
Definition: ota_private.h:354
IngestResult_t
IngestResult_t
Data ingest results.
Definition: ota_private.h:168
OtaFileContext_t::fileAttributes
uint32_t fileAttributes
Flags specific to the file being received (e.g. secure, bundle, archive).
Definition: ota_private.h:392
OtaFileContext_t::isInSelfTest
bool isInSelfTest
True if the job is in self test mode.
Definition: ota_private.h:407
OtaEvent_t
OtaEvent_t
OTA Agent Events.
Definition: ota_private.h:345
DocParseErrParamKeyNotInModel
@ DocParseErrParamKeyNotInModel
Definition: ota_private.h:205
DocParseErr_t
DocParseErr_t
Generic JSON document parser errors.
Definition: ota_private.h:190
OtaImageStateAborted
@ OtaImageStateAborted
The state of the OTA MCU Image after a timeout publish to the stream request fails....
Definition: ota_private.h:319
OtaFileContext_t::filePathMaxSize
uint16_t filePathMaxSize
Maximum size of the update file path.
Definition: ota_private.h:384
OtaAgentEventRequestTimer
@ OtaAgentEventRequestTimer
Event to request event timer.
Definition: ota_private.h:353
kOTA_MaxSignatureSize
#define kOTA_MaxSignatureSize
A composite cryptographic signature structure able to hold our largest supported signature.
Definition: ota_private.h:122
OtaAgentEventReceivedJobDocument
@ OtaAgentEventReceivedJobDocument
Event when job document is received.
Definition: ota_private.h:349
OtaImageStateTesting
@ OtaImageStateTesting
The state of the OTA MCU Image post successful download and reboot.
Definition: ota_private.h:316
JsonDocParam_t::pDestOffset
uint16_t pDestOffset
Definition: ota_private.h:258
IngestResultBadFileHandle
@ IngestResultBadFileHandle
Definition: ota_private.h:173
ModelParamType_t
ModelParamType_t
Document model parameter types used by the JSON document parser.
Definition: ota_private.h:216
OtaEventData_t::bufferUsed
bool bufferUsed
Definition: ota_private.h:425
DocParseErrNullDocPointer
@ DocParseErrNullDocPointer
Definition: ota_private.h:203
JsonDocModel_t::numModelParams
uint16_t numModelParams
Definition: ota_private.h:281
Sig256_t
OTA File Signature info.
Definition: ota_private.h:369
OtaFileContext_t::serverFileID
uint32_t serverFileID
The file is referenced by this numeric ID in the OTA job.
Definition: ota_private.h:393
OtaEventMsg_t::pEventData
OtaEventData_t * pEventData
Definition: ota_private.h:435
OtaAgentEventMax
@ OtaAgentEventMax
Last event specifier.
Definition: ota_private.h:359
OtaFileContext_t::blockBitmapMaxSize
uint16_t blockBitmapMaxSize
Maximum size of the block bitmap.
Definition: ota_private.h:399
IngestResultDuplicate_Continue
@ IngestResultDuplicate_Continue
Definition: ota_private.h:181
DocParseErrMalformedDoc
@ DocParseErrMalformedDoc
Definition: ota_private.h:199
JsonDocParam_t::pSrcKey
const char * pSrcKey
Definition: ota_private.h:256
OtaAgentEventStartSelfTest
@ OtaAgentEventStartSelfTest
Event to trigger self test.
Definition: ota_private.h:347
OtaPalImageStateInvalid
@ OtaPalImageStateInvalid
OTA PAL Image is invalid.
Definition: ota_private.h:335
IngestResultUnexpectedBlock
@ IngestResultUnexpectedBlock
Definition: ota_private.h:174
OtaFileContext_t::updaterVersion
uint32_t updaterVersion
Used by OTA self-test detection, the version of Firmware that did the update.
Definition: ota_private.h:406
DocParseErrNullBodyPointer
@ DocParseErrNullBodyPointer
Definition: ota_private.h:202
OtaFileContext_t::pRxBlockBitmap
uint8_t * pRxBlockBitmap
Bitmap of blocks received (for deduplicating and missing block request).
Definition: ota_private.h:398
IngestResultBlockOutOfRange
@ IngestResultBlockOutOfRange
Definition: ota_private.h:175
OtaPalImageStateValid
@ OtaPalImageStateValid
OTA PAL Image is valid.
Definition: ota_private.h:334
OtaFileContext_t::blocksRemaining
uint32_t blocksRemaining
How many blocks remain to be received (a code optimization).
Definition: ota_private.h:391
OtaAgentEventUserAbort
@ OtaAgentEventUserAbort
Event triggered by user to stop agent.
Definition: ota_private.h:357
OtaImageStateRejected
@ OtaImageStateRejected
The state of the OTA MCU Image when the job has been rejected.
Definition: ota_private.h:318
OtaFileContext_t::pFile
uint8_t * pFile
File type is RAM/Flash image pointer after file is open for write.
Definition: ota_private.h:388
DocParseErrInvalidToken
@ DocParseErrInvalidToken
Definition: ota_private.h:207
IngestResultNoDecodeMemory
@ IngestResultNoDecodeMemory
Definition: ota_private.h:178
OtaFileContext_t::authSchemeMaxSize
uint16_t authSchemeMaxSize
Maximum size of the auth scheme.
Definition: ota_private.h:405
Sig256_t::size
uint16_t size
Size, in bytes, of the signature.
Definition: ota_private.h:370
DocParseErrInvalidModelParamType
@ DocParseErrInvalidModelParamType
Definition: ota_private.h:206
OtaFileContext_t::pStreamName
uint8_t * pStreamName
The stream associated with this file from the OTA service.
Definition: ota_private.h:396