class

CoAP::Client

Inherits Reference < Object

Constructors

new(host : String, port = nil, tls : TLSContext = nil)
Source
new(uri : URI, tls : TLSContext = nil)
Source

Instance methods

before_request
Source
before_transmit
Source
check_for_timeouts
Source
close
Source
closed?
Source
exec(request : CoAP::Request) : CoAP::ResponseHandler | Nil

TODO:: allow this to handle multiple requests at once, including observes requires channels for each message_id and a fiber for response processing

Source
finalize
Source
host
Source
io=(transport : IO)
Source
port
Source
process_message(message : CoAP::Message)
Source
read_timeout

default CoAP timeout

Source
read_timeout=(read_timeout : Number)

Sets the number of seconds to wait when reading before raising an IO::TimeoutError.

Source
read_timeout=(read_timeout : Time::Span)

Sets the read timeout with a Time::Span, to wait when reading before raising an IO::TimeoutError.

Source
tls?
Source

Nested types