Module: CoRE::CoAP
- Extended by:
- Utility
- Defined in:
- lib/core/coap.rb,
lib/core/coap/fsm.rb,
lib/core/coap/coap.rb,
lib/core/coap/block.rb,
lib/core/coap/types.rb,
lib/core/coap/client.rb,
lib/core/coap/coding.rb,
lib/core/coap/message.rb,
lib/core/coap/options.rb,
lib/core/coap/utility.rb,
lib/core/coap/version.rb,
lib/core/coap/observer.rb,
lib/core/coap/registry.rb,
lib/core/coap/resolver.rb,
lib/core/coap/transmission.rb
Defined Under Namespace
Modules: Coding, Options, Registry, Types, Utility Classes: Block, Client, FSM, Message, Observer, Resolver, Transmission
Constant Summary collapse
- EMPTY =
empty_buffer.freeze
- TTYPES =
[:con, :non, :ack, :rst]
- TTYPES_I =
invert_into_hash(TTYPES)
- METHODS =
[nil, :get, :post, :put, :delete]
- METHODS_I =
invert_into_hash(METHODS)
- PORT =
5683
- VERSION =
'0.1.4'
Constants included from Options
Options::DEFAULTING_OPTIONS, Options::OPTIONS, Options::OPTIONS_I, Options::TOKEN_ON
Constants included from Coding
Coding::BIN, Coding::PATH_ENCODED_RE, Coding::PATH_UNENCODED, Coding::QUERY_ENCODED_RE, Coding::QUERY_UNENCODED, Coding::SUB_DELIM, Coding::SUB_DELIM_NO_AMP, Coding::UNRESERVED, Coding::UTF8
Class Method Summary collapse
- .logger ⇒ Object
- .logger=(logger) ⇒ Object
-
.parse(*args) ⇒ Object
Shortcut: CoRE::CoAP::parse == CoRE::CoAP::Message.parse.
Methods included from Utility
critical?, empty_buffer, invert_into_hash, no_cache_key?, unsafe?
Methods included from Types
#o256_many, #o256_once, #opaq_many, #opaq_once, #presence_once, #str_many, #str_once, #uint_many, #uint_once
Methods included from Coding
included, #number_of_bits_up_to, #o256_decode, #o256_encode, #path_decode, #path_encode, #percent_decode, #query_decode, #query_encode, #scheme_and_authority_decode, #scheme_and_authority_encode, #uri_encode_element, #vlb_decode, #vlb_encode
Class Method Details
.logger ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/core/coap.rb', line 5 def logger if @logger.nil? @logger = Logger.new(STDOUT) @logger.level = Logger::WARN end @logger end |
.logger=(logger) ⇒ Object
14 15 16 17 |
# File 'lib/core/coap.rb', line 14 def logger=(logger) @logger.close unless @logger.nil? @logger = logger end |