1.1.18.7 User Properties
User properties can be set by calling WDRV_WINC_MQTTUserPropSet
and included in many MQTT messages.
User properties can be received in many MQTT messages via a WDRV_WINC_MQTT_USER_PROP_CALLBACK
callback registered by calling WDRV_WINC_MQTTUserPropCallbackSet
.
Setting a User Property
/* Set property "KeyName" = "Value". */ WDRV_WINC_MQTTUserPropSet(wdrvHandle, "KeyName", 7, "Value", 5);
Clearing a User Property
/* Clear property "KeyName". */ WDRV_WINC_MQTTUserPropSet(wdrvHandle, "KeyName", 7, NULL, 0);