@@ -1178,7 +1178,7 @@ static MQTTStatus_t deserializePingresp( const MQTTPacketInfo_t * pPingresp );
1178
1178
* @param[in] pFixedBuffer Buffer for packet serialization.
1179
1179
*
1180
1180
*/
1181
- static void seriailizePubAckPacketV5 ( const MQTTAckInfo_t * pAckInfo ,
1181
+ static void serializePubAckPacketV5 ( const MQTTAckInfo_t * pAckInfo ,
1182
1182
uint8_t packetType ,
1183
1183
uint16_t packetId ,
1184
1184
size_t remainingLength ,
@@ -1213,7 +1213,7 @@ static MQTTStatus_t deserializePingresp( const MQTTPacketInfo_t * pPingresp );
1213
1213
*
1214
1214
* @param[out] pAckInfo To store the decoded property.
1215
1215
* @param[out] pIndex Pointer to the current index of the buffer.
1216
- * @param[out] remainingLength Reamining length of the incoming packet.
1216
+ * @param[out] remainingLength Remaining length of the incoming packet.
1217
1217
*
1218
1218
*
1219
1219
* @return #MQTTSuccess, #MQTTProtocolError and #MQTTMalformedPacket
@@ -1260,7 +1260,7 @@ static MQTTStatus_t deserializePingresp( const MQTTPacketInfo_t * pPingresp );
1260
1260
* @param[in] sessionExpiry Session Expiry Interval.
1261
1261
*
1262
1262
*/
1263
- static void seriailizeDisconnectPacketV5 ( const MQTTAckInfo_t * pDisconnectInfo ,
1263
+ static void serializeDisconnectPacketV5 ( const MQTTAckInfo_t * pDisconnectInfo ,
1264
1264
const MQTTFixedBuffer_t * pFixedBuffer ,
1265
1265
size_t remainingLength ,
1266
1266
uint32_t sessionExpiry );
@@ -2392,7 +2392,7 @@ static MQTTStatus_t deserializePingresp( const MQTTPacketInfo_t * pPingresp );
2392
2392
return status ;
2393
2393
}
2394
2394
2395
- static void seriailizePubAckPacketV5 ( const MQTTAckInfo_t * pAckInfo ,
2395
+ static void serializePubAckPacketV5 ( const MQTTAckInfo_t * pAckInfo ,
2396
2396
uint8_t packetType ,
2397
2397
uint16_t packetId ,
2398
2398
size_t remainingLength ,
@@ -2556,7 +2556,7 @@ static MQTTStatus_t deserializePingresp( const MQTTPacketInfo_t * pPingresp );
2556
2556
{
2557
2557
while ( ( propertyLength > 0U ) && ( status == MQTTSuccess ) )
2558
2558
{
2559
- /*Decode the poperty id.*/
2559
+ /*Decode the property id.*/
2560
2560
uint8_t packetId = * pLocalIndex ;
2561
2561
bool reasonString = false;
2562
2562
pLocalIndex = & pLocalIndex [ 1 ];
@@ -5186,7 +5186,7 @@ MQTTStatus_t MQTT_ProcessIncomingPacketTypeAndLength( const uint8_t * pBuffer,
5186
5186
pIndexLocal = & pIndexLocal [ 4 ];
5187
5187
}
5188
5188
5189
- /*Serialze the topic alias if provided*/
5189
+ /*Serialize the topic alias if provided*/
5190
5190
5191
5191
if ( pPublishInfo -> topicAlias != 0U )
5192
5192
{
@@ -5441,7 +5441,7 @@ MQTTStatus_t MQTT_ProcessIncomingPacketTypeAndLength( const uint8_t * pBuffer,
5441
5441
}
5442
5442
else if ( ( pPublishInfo -> retain == true ) && ( retainAvailable == 0U ) )
5443
5443
{
5444
- LogError ( ( "Retain is not avaialble ." ) );
5444
+ LogError ( ( "Retain is not available ." ) );
5445
5445
status = MQTTBadParameter ;
5446
5446
}
5447
5447
else if ( ( pPublishInfo -> qos != MQTTQoS0 ) && ( maxQos == 0U ) )
@@ -5721,7 +5721,7 @@ MQTTStatus_t MQTT_ProcessIncomingPacketTypeAndLength( const uint8_t * pBuffer,
5721
5721
}
5722
5722
else
5723
5723
{
5724
- seriailizePubAckPacketV5 ( pAckInfo , packetType , packetId , remainingLength , pFixedBuffer );
5724
+ serializePubAckPacketV5 ( pAckInfo , packetType , packetId , remainingLength , pFixedBuffer );
5725
5725
}
5726
5726
}
5727
5727
@@ -5868,7 +5868,7 @@ MQTTStatus_t MQTT_ProcessIncomingPacketTypeAndLength( const uint8_t * pBuffer,
5868
5868
return pIndexLocal ;
5869
5869
}
5870
5870
5871
- static void seriailizeDisconnectPacketV5 ( const MQTTAckInfo_t * pDisconnectInfo ,
5871
+ static void serializeDisconnectPacketV5 ( const MQTTAckInfo_t * pDisconnectInfo ,
5872
5872
const MQTTFixedBuffer_t * pFixedBuffer ,
5873
5873
size_t remainingLength ,
5874
5874
uint32_t sessionExpiry )
@@ -5954,7 +5954,7 @@ MQTTStatus_t MQTT_ProcessIncomingPacketTypeAndLength( const uint8_t * pBuffer,
5954
5954
}
5955
5955
else
5956
5956
{
5957
- seriailizeDisconnectPacketV5 ( pDisconnectInfo , pFixedBuffer , remainingLength , sessionExpiry );
5957
+ serializeDisconnectPacketV5 ( pDisconnectInfo , pFixedBuffer , remainingLength , sessionExpiry );
5958
5958
}
5959
5959
}
5960
5960
@@ -6034,7 +6034,7 @@ MQTTStatus_t MQTT_ProcessIncomingPacketTypeAndLength( const uint8_t * pBuffer,
6034
6034
{
6035
6035
while ( ( propertyLength > 0U ) && ( status == MQTTSuccess ) )
6036
6036
{
6037
- /*Decode the poperty id.*/
6037
+ /*Decode the property id.*/
6038
6038
uint8_t propertyId = * pIndex ;
6039
6039
bool reasonString = false;
6040
6040
bool serverRef = false;
0 commit comments