class

RNS::WeaveWDCLConnection

Inherits Reference < Object

WDCL serial connection handler. Manages the physical serial connection and HDLC framing for WDCL protocol.

Constructors

new(owner : WeaveInterface, device : WeaveDevice, port : String, as_interface : Bool = false)
Source
new(owner : WeaveInterface, device : WeaveDevice, switch_identity : Identity, no_connect : Bool = true)

Test constructor: create without opening ports

Source

Instance methods

close
Source
configure_device
Source
online
Source
online=(online : Bool)
Source
open_port
Source
port
Source
port=(port : String)
Source
process_incoming(data : Bytes)
Source
process_outgoing(data : Bytes)
Source
read_loop
Source
reconnect_port
Source
reconnecting
Source
reconnecting=(reconnecting : Bool)
Source
should_run
Source
should_run=(should_run : Bool)
Source
speed
Source
speed=(speed : Int32)
Source
switch_id
Source
switch_id=(switch_id : Bytes)
Source
switch_identity
Source
switch_identity=(switch_identity : Identity)
Source
switch_pub_bytes
Source
switch_pub_bytes=(switch_pub_bytes : Bytes)
Source
to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
wdcl_connected
Source
wdcl_connected=(wdcl_connected : Bool)
Source