Multithreaded apps will need to use MqttClient_PropsAdd_ex for manipulating properties add to V5 commands. This differs in that the properties are not allocated from the internal property stack. As a result, when MqttClient_PropsAdd_ex is used, MqttClient_PropsFree will not be used after the command.
Added mutex protection in MqttDecode_Props to fix a possible race condition.
Added sleep in wait task of multithread example to allow ping task to execute more than once.
MqttClient_PropsAdd_ex
for manipulating properties add to V5 commands. This differs in that the properties are not allocated from the internal property stack. As a result, whenMqttClient_PropsAdd_ex
is used,MqttClient_PropsFree
will not be used after the command.MqttDecode_Props
to fix a possible race condition.