Ejemplo n.º 1
0
        private async Task AddBroker()
        {
            var address = _editTextAddress.Text;
            var port    = int.Parse(_editTextPort.Text);
            var client  = await _mqttService.AddBroker(address, port);

            await client.Connect();

            //await client.Subscribe("#");
            Toast.MakeText(this, "Broked added", ToastLength.Short);
            SetUpManageBrokers();
        }