class KNX::TunnelClient
 
  - KNX::TunnelClient
- Reference
- Object
Defined in:
knx/tunnel_client.crConstructors
Instance Method Summary
- #action(address : String, data, **options)
- #channel_id : UInt8
- 
        #connect : Nil
        
          establish comms 
- #connected? : Bool
- #connecting? : Bool
- #control : Socket::IPAddress
- 
        #disconnect : Nil
        
          perform a graceful disconnect 
- #max_retries : Int32
- #max_retries=(max_retries : Int32)
- 
        #on_message(&on_message : KNX::CEMI -> )
        
          a cEMI frame has been sent from the interface 
- 
        #on_state_change(&on_state_change : Bool, KNX::ConnectionError -> )
        
          connected or disconnected state changed 
- 
        #on_transmit(&on_transmit : Bytes -> )
        
          send some data to the remote 
- 
        #process(raw_data : Bytes)
        
          process incoming data 
- 
        #process(packet : KNX::ConnectResponse)
        
          A new connection has been established 
- #process(packet : KNX::DisconnectRequest)
- #process(packet : KNX::ConnectStateRequest)
- #process(packet : KNX::DisconnectResponse)
- #process(packet : KNX::ConnectStateResponse)
- #process(packet : KNX::TunnelRequest)
- #process(packet : KNX::TunnelResponse)
- 
        #query_state : Nil
        
          keep alive 
- #queue_size
- 
        #request(message : KNX::CEMI)
        
          perform an action / query 
- #retransmit : Nil
- #sequence : UInt8
- 
        #shutdown! : Nil
        
          perform a hard and fast disconnect, instance is not re-usable 
- #status(address : String, **options)
- #timeout : Time::Span
- #timeout=(timeout : Time::Span)
- #waiting? : Bool
Constructor Detail
        
        def self.new(control : Socket::IPAddress, timeout : Time::Span = 3.seconds, max_retries : Int32 = 5, knx : KNX = ::KNX.new(broadcast: false, no_repeat: true))
        #
      
      
      Instance Method Detail
a cEMI frame has been sent from the interface
        
        def on_state_change(&on_state_change : Bool, KNX::ConnectionError -> )
        #
      
      
        connected or disconnected state changed