class KNX::ObjectServer

Defined in:

knx/object_server.cr
knx/object_server/datagram.cr
knx/object_server/item.cr
knx/object_server/object_header.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(command : KNX::ObjectServer::Command = Command::SetValueAndSend, filter : KNX::ObjectServer::Filter = Filter::ValidValues) #

[View source]

Instance Method Detail

def action(index, data = nil, command = @command) #

Builds an Object Server command datagram for setting an index to a value

@param index [Integer] the object address or index as defined in the object server @param data [String, Integer, Array] the value to be set at the address @return [Datagram] a bindata object representing the request that can be modified further


[View source]
def read(raw_data : Bytes) #

Returns a KNX Object Server datagram as an object for easy inspection

@param data [String] a binary string containing the datagram @return [Datagram] a bindata object representing the data


[View source]
def status(index, item_count = 1, filter = @filter) #

Builds an Object Server request datagram for querying an index value


[View source]