Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            LoggerConfig.SetSerilog();

            var server = TestRpcServer();
            var client = TestRpcClient();

            Task.WaitAll(server, client);


            var config = new MqttConfiguration("Mqtt");

            config.ClientId = "Test JsonRpcMqtt" + Guid.NewGuid();
            config.Username = "******";
            config.Password = "******";

            var mqtt    = new MqttClientHelper(config);
            var taskRun = mqtt.RunAsync();

            TestMqtt(mqtt);

            taskRun.Wait();
            mqtt.Disconnect();
        }