class

KNX::ConnectStateRequest

Inherits BinData < Reference < Object

Connection state request / response can be considered as a heartbeat mechanism. It enables KNXnet/IP client to ping the server in regular intervals (every 60 seconds) After a while (120 seconds) server will conclude that the client is not available and it will terminate the tunnelling connection if the client fails to send the Connection State request.

Constants

AFTER_DESERIALIZE = [] of Nil

Connection state request / response can be considered as a heartbeat mechanism. It enables KNXnet/IP client to ping the server in regular intervals (every 60 seconds) After a while (120 seconds) server will conclude that the client is not available and it will terminate the tunnelling connection if the client fails to send the Connection State request.

BEFORE_SERIALIZE = [] of Nil

Connection state request / response can be considered as a heartbeat mechanism. It enables KNXnet/IP client to ping the server in regular intervals (every 60 seconds) After a while (120 seconds) server will conclude that the client is not available and it will terminate the tunnelling connection if the client fails to send the Connection State request.

ENDIAN = ["big"]

Connection state request / response can be considered as a heartbeat mechanism. It enables KNXnet/IP client to ping the server in regular intervals (every 60 seconds) After a while (120 seconds) server will conclude that the client is not available and it will terminate the tunnelling connection if the client fails to send the Connection State request.

Connection state request / response can be considered as a heartbeat mechanism. It enables KNXnet/IP client to ping the server in regular intervals (every 60 seconds) After a while (120 seconds) server will conclude that the client is not available and it will terminate the tunnelling connection if the client fails to send the Connection State request.

PARTS = [{type: "basic", name: header, cls: KNX::Header, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: channel_id, cls: UInt8, onlyif: nil, verify: nil, value: nil, endian: nil}, {type: "enum", name: status, cls: typeof(ConnectionError::NoError.value), onlyif: nil, verify: nil, value: nil, encoding: nil, enum_type: KNX::ConnectionError}, {type: "basic", name: control_endpoint, cls: KNX::HPAI, onlyif: nil, verify: nil, value: nil}] of Nil

Connection state request / response can be considered as a heartbeat mechanism. It enables KNXnet/IP client to ping the server in regular intervals (every 60 seconds) After a while (120 seconds) server will conclude that the client is not available and it will terminate the tunnelling connection if the client fails to send the Connection State request.

REMAINING = [] of Nil

Connection state request / response can be considered as a heartbeat mechanism. It enables KNXnet/IP client to ping the server in regular intervals (every 60 seconds) After a while (120 seconds) server will conclude that the client is not available and it will terminate the tunnelling connection if the client fails to send the Connection State request.

Constructors

new(channel_id : Int, control : Socket::IPAddress, protocol : ProtocolType = ProtocolType::IPv4UDP)
Source

Class methods

bit_fields

Connection state request / response can be considered as a heartbeat mechanism. It enables KNXnet/IP client to ping the server in regular intervals (every 60 seconds) After a while (120 seconds) server will conclude that the client is not available and it will terminate the tunnelling connection if the client fails to send the Connection State request.

Source

Instance methods

__format__

A group or bit_field captures the endianness at its declaration point, so declaring endian after one would silently leave it system-endian. Fail loudly.

Source
channel_id
channel_id=(channel_id : UInt8)
control_endpoint
control_endpoint=(control_endpoint : HPAI)
header
header=(header : Header)
status
status=(status : ConnectionError)