You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The param description for the API shows that dataLength is an input argument dataLength Decoded data block length.
This line should be ( void ) memset( data, ( int32_t ) '\0', mqttFileDownloader_CONFIG_BLOCK_SIZE );
changed to : ( void ) memset( data, ( int32_t ) '\0', *dataLength );
This is to avoid using constants if arguments are available for the same. The API does provide an interface to pass the dataLength and it should be used for manipulating the data buffer.
The text was updated successfully, but these errors were encountered:
The param description for the API shows that dataLength is an input argument
dataLength Decoded data block length.
This line should be
( void ) memset( data, ( int32_t ) '\0', mqttFileDownloader_CONFIG_BLOCK_SIZE );
changed to :
( void ) memset( data, ( int32_t ) '\0', *dataLength );
This is to avoid using constants if arguments are available for the same. The API does provide an interface to pass the dataLength and it should be used for manipulating the data buffer.
The text was updated successfully, but these errors were encountered: