Module: MQTT::Homie

Defined in:
lib/mqtt/homie.rb,
lib/mqtt/homie/node.rb,
lib/mqtt/homie/client.rb,
lib/mqtt/homie/device.rb,
lib/mqtt/homie/network.rb,
lib/mqtt/homie/version.rb,
lib/mqtt/homie/property.rb,
lib/mqtt/homie/homie_object.rb,
lib/mqtt/homie/device_builder.rb,
lib/mqtt/homie/homie_attribute.rb

Defined Under Namespace

Modules: HomieAttribute, Network Classes: Client, Device, DeviceBuilder, Error, HomieObject, Node, Property

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject

Returns the value of attribute logger.



9
10
11
# File 'lib/mqtt/homie.rb', line 9

def logger
  @logger
end

Class Method Details

.debug(message) ⇒ Object



11
12
13
# File 'lib/mqtt/homie.rb', line 11

def debug(message)
  logger.debug(message) if logger
end

.device_builder(options = {}) ⇒ Object



15
16
17
# File 'lib/mqtt/homie.rb', line 15

def device_builder(options = {})
  MQTT::Homie::DeviceBuilder.new(options)
end