Exemple #1
0
 protected KnxFrame(IKnxConnection knx, ServiceType serviceType)
 {
     KnxConnection    = knx;
     CreationDateTime = DateTime.Now;
     ServiceType      = serviceType;
     IsSecureFrame    = false;
 }
Exemple #2
0
        public async Task Init(KnxInterfaceHelper.GetUsbDeviceHandler getDevice)
        {
            IKnxInterface inter = _conn.GetInterface(Hash);

            Debug.WriteLine("Request to Connect to: " + inter.Name);
            _knxConn = await KnxInterfaceHelper.GetConnection(inter, _conn, getDevice);

            _knxConn.OnTunnelResponse += OnTunnelActivity;
            _knxConn.OnTunnelRequest  += OnTunnelActivity;
        }
Exemple #3
0
 public BusCommon(IKnxConnection conn)
 {
     _conn = conn;
     _conn.OnTunnelResponse += _conn_OnTunnelResponse;
 }
 private WriteStatusFrame(IKnxConnection knx, string ia, byte[] value)
     : base(knx, KnxHelper.ServiceType.TunnellingRequest)
 {
     _ia   = ia;
     _data = value;
 }
 internal static WriteStatusFrame CreateFrame(IKnxConnection knx, string ia, byte[] value)
 {
     return(new WriteStatusFrame(knx, ia, value));
 }