KNX
Inherits Reference < Object
Constants
ERROR_CODES = {0 => "Unspecified Error", 1 => "Out of range", 2 => "Out of maxrange", 3 => "Out of minrange", 4 => "Memory Error", 5 => "Read only", 6 => "Illegal command", 7 => "Void DP", 8 => "Type conflict", 9 => "Prop. Index range error", 10 => "Value temporarily not writeable"}
Log = ::App::Log.for("knx")
Constructors
new(priority : KNX::Priority = Priority::LOW, no_repeat : Bool = true, broadcast : Bool = true, hop_count : UInt8 = 6_u8, two_level_group : Bool = false, cmac_key : Slice(UInt8) | Nil = nil, source : String = "0.0.0")
SourceClass methods
datapoint(value : Float | String | Time | Bool) : Datapoint
takes a stab at what you are hoping for, favours accuracy over what a device might be expecting
Instance methods
action(address : String, data, msg_code : MsgCode = MsgCode::DataRequest, no_repeat : Bool = @no_repeat, broadcast : Bool = @broadcast, priority : Priority = @priority, hop_count : UInt8 = @hop_count, request_type : RequestTypes = RequestTypes::RoutingIndication, source : String = @source) : ActionDatagram
Sourcebroadcast=(broadcast : Bool)
Sourcebroadcast?
Sourcecmac_key
Sourcecmac_key=(cmac_key : Bytes | Nil)
Sourcehop_count
Sourcehop_count=(hop_count : UInt8)
Sourceno_repeat=(no_repeat : Bool)
Sourceno_repeat?
Sourcepriority
Sourcepriority=(priority : Priority)
Sourceread(data : Bytes, two_level_group = @two_level_group)
Sourcesource
Sourcesource=(source : String)
Sourcestatus(address : String, msg_code : MsgCode = MsgCode::DataRequest, no_repeat : Bool = @no_repeat, broadcast : Bool = @broadcast, priority : Priority = @priority, hop_count : UInt8 = @hop_count, request_type : RequestTypes = RequestTypes::RoutingIndication, source : String = @source)
SourceNested types
- KNX::ActionDatagram
- KNX::ActionType
- KNX::Address
- KNX::Boolean
- KNX::CEMI
- KNX::CRD
- KNX::CRI
- KNX::ConnectRequest
- KNX::ConnectResponse
- KNX::ConnectStateRequest
- KNX::ConnectStateResponse
- KNX::ConnectType
- KNX::ConnectionError
- KNX::DIB
- KNX::DatagramBuilder
- KNX::Datapoint
- KNX::Date
- KNX::DateTime
- KNX::DayOfWeek
- KNX::DescriptionType
- KNX::DeviceInfo
- KNX::DisconnectRequest
- KNX::DisconnectResponse
- KNX::DpString
- KNX::DpTime
- KNX::FamilyType
- KNX::FourByteFloat
- KNX::GroupAddress
- KNX::GroupAddress2Level
- KNX::HPAI
- KNX::Header
- KNX::IndividualAddress
- KNX::InformationBlock
- KNX::MediumType
- KNX::MsgCode
- KNX::ObjectServer
- KNX::Priority
- KNX::ProtocolType
- KNX::RequestTypes
- KNX::ResponseDatagram
- KNX::SearchRequest
- KNX::SearchResponse
- KNX::ServiceFamily
- KNX::StatusDatagram
- KNX::SupportedServices
- KNX::TpciType
- KNX::TunnelClient
- KNX::TunnelRequest
- KNX::TunnelResponse
- KNX::TwoByteFloatingPoint