Exemplo n.º 1
0
        public void Setup()
        {
            arduinoSerial = new Serial { RunLoop = true };
            arduinoSerial.Setup();

            lyncxClient = new LyncxClient();
            lyncxClient.AvailabilityChanged += lyncxClient_AvailabilityChanged;
            lyncxClient.Setup();
        }
Exemplo n.º 2
0
        public void Setup()
        {
            mqttClient = new MqttClient(IPAddress.Parse(config.AppSettings["MqttHost"]), int.Parse(config.AppSettings["MqttPort"]), false, null);
            mqttClient.MqttMsgPublished += client_MqttMsgPublished;
            mqttClient.Connect(config.AppSettings["MqttClientName"] + "-" + config.AppSettings["MqttPairingCode"], config.AppSettings["MqttUsername"], config.AppSettings["MqttPassword"]);

            lyncxClient = new LyncxClient();
            lyncxClient.AvailabilityChanged += lyncxClient_AvailabilityChanged;

            lyncxClient.Setup();
        }
Exemplo n.º 3
0
        public void Setup()
        {
            protocol = ProtocolFactory.Get(Config.Protocol);
            protocol.SendSuccess += protocol_SendSuccess;
            protocol.SendFailure += protocol_SendFailure;
            protocol.MessageReceived += protocol_Receive;
            protocol.EventReceived += protocol_EventReceived;

            protocol.Setup();

            lyncx = new LyncxClient();
            lyncx.AvailabilityChanged += lyncx_AvailabilityChanged;
            lyncx.Setup();
        }