Exemple #1
0
        public static void Start()
        {
            Config();
            Stop();
            if (bacnetClient == null)
            {
                // Bacnet on UDP/IP/Ethernet
                bacnetClient = new BacnetClient(new BacnetIpUdpProtocolTransport(0xBAC0, false));

                // or Bacnet Mstp on COM4 à 38400 bps, own master id 8
                // m_bacnet_client = new BacnetClient(new BacnetMstpProtocolTransport("COM4", 38400, 8);
                // Or Bacnet Ethernet
                // bacnetClient = new BacnetClient(new BacnetEthernetProtocolTransport("Connexion au réseau local"));
                // Or Bacnet on IPV6
                // bacnetClient = new BacnetClient(new BacnetIpV6UdpProtocolTransport(0xBAC0));
            }

            bacnetClient.OnIam += Handler_OnIam;
            bacnetClient.Start();
            bacnetClient.WhoIs();
            LogHelper.Log("bacnetClient start IpUdpProtocol 0xBAC0: " + bacnetClient.ToString());
        }