Example #1
0
 protected KnxFrame(IKnxConnection knx, ServiceType serviceType)
 {
     KnxConnection    = knx;
     CreationDateTime = DateTime.Now;
     ServiceType      = serviceType;
     IsSecureFrame    = false;
 }
Example #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;
        }
Example #3
0
 public BusCommon(IKnxConnection conn)
 {
     _conn = conn;
     _conn.OnTunnelResponse += _conn_OnTunnelResponse;
 }
Example #4
0
 private WriteStatusFrame(IKnxConnection knx, string ia, byte[] value)
     : base(knx, KnxHelper.ServiceType.TunnellingRequest)
 {
     _ia   = ia;
     _data = value;
 }
Example #5
0
 internal static WriteStatusFrame CreateFrame(IKnxConnection knx, string ia, byte[] value)
 {
     return(new WriteStatusFrame(knx, ia, value));
 }