Пример #1
0
        public static async Task Init(IIde ide, string ideName)
        {
            codeChangeHandler = new CodeChangeHandler(ide);
            if (!await mqttBroker.IsRunning())
            {
                await mqttBroker.StartAsync();
            }

            await mqttClient.ConnectAsync(ideName);
        }
        private async Task RegisterDevice(string ideIP, int idePort)
        {
            try
            {
                await mqttClient.ConnectAsync("Phone Client");

                Debug.WriteLine("Connected to: " + ideIP);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
        }