This is the example to use MQTTnet in different platform. For more information of MQTTnet, please visit https://github.com/chkr1011/MQTTnet
Install-Package MQTTnet.ClientLib
https://officialdoniald.azurewebsites.net/2019/10/17/xamarin-forms-using-mqtt/