Skip to content

Commit

Permalink
Fix typo in MQTT_Unsubscribe code example (#122)
Browse files Browse the repository at this point in the history
This fixes a typo in the code example that was raised in issue #119
  • Loading branch information
yourslab authored Dec 4, 2020
1 parent ca492a4 commit 8de05fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/include/core_mqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ MQTTStatus_t MQTT_Ping( MQTTContext_t * pContext );
* // Obtain a new packet id for the unsubscribe request.
* packetId = MQTT_GetPacketId( pContext );
*
* status = MQTT_Subscribe( pContext, &unsubscribeList[ 0 ], NUMBER_OF_SUBSCRIPTIONS, packetId );
* status = MQTT_Unsubscribe( pContext, &unsubscribeList[ 0 ], NUMBER_OF_SUBSCRIPTIONS, packetId );
*
* if( status == MQTTSuccess )
* {
Expand Down

0 comments on commit 8de05fa

Please sign in to comment.