class CoAP::Client
- CoAP::Client
- Reference
- Object
Defined in:
coap/client.crConstructors
Instance Method Summary
- #before_request(&callback : CoAP::Request -> )
- #before_transmit(&callback : CoAP::Message -> )
- #check_for_timeouts
- #close : Nil
- #closed?
-
#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
- #exec!(request : CoAP::Request) : CoAP::ResponseHandler
- #finalize
- #host : String
- #io=(transport : IO)
- #port : Int32
- #process_message(message : CoAP::Message)
-
#read_timeout : Float64
default CoAP timeout
-
#read_timeout=(read_timeout : Number)
Sets the number of seconds to wait when reading before raising an
IO::TimeoutError
. -
#read_timeout=(read_timeout : Time::Span)
Sets the read timeout with a
Time::Span
, to wait when reading before raising anIO::TimeoutError
. - #tls : OpenSSL::SSL::Context::Client
- #tls? : OpenSSL::SSL::Context::Client | Nil
Constructor Detail
Instance Method Detail
TODO : allow this to handle multiple requests at once, including observes requires channels for each message_id and a fiber for response processing
def read_timeout=(read_timeout : Number)
#
Sets the number of seconds to wait when reading before raising an IO::TimeoutError
.
def read_timeout=(read_timeout : Time::Span)
#
Sets the read timeout with a Time::Span
, to wait when reading before raising an IO::TimeoutError
.