When you are performing a Subscription, Unsubscription, or a Publish you can't "yield" at exactly the same time inside the same thread. You perform your action then wait in the MQTT_ProcessLoop for a response to occur. When you're not actively doing something, you wait in the MQTT_Proce...