class Cisco::Meraki::MQTT

Included Modules

Defined in:

cisco/meraki/mqtt.cr

Constant Summary

LUX_ID = "lux"
NO_MATCH = [] of Interface::Sensor::Detail
SUBS = {"/merakimv/+/net.meraki.detector", "/merakimv/+/light", "/merakimv/+/0", "/merakimv/+/crossing/+"}

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def connected #

[View source]
def crossing_people : Hash(String, Tuple(Int32, Int64)) #

Serial => count


[View source]
def crossing_vehicle : Hash(String, Tuple(Int32, Int64)) #

[View source]
def disconnected #

[View source]
def lux : Hash(String, Tuple(Float64, Int64)) #

[View source]
def on_load #

[View source]
def on_unload #

[View source]
def on_update #

[View source]
def people_counts : Hash(String, Hash(String, Tuple(Float64, Int64))) #

[View source]
def ping #

[View source]
def received(data, task) #

[View source]
def sensor(mac : String, id : String | Nil = nil) : Detail | Nil #

return the specified sensor details


[View source]
def sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil) : Array(Detail) #

return an array of sensor details zone_id can be ignored if location is unknown by the sensor provider mac_address can be used to grab data from a single device (basic grouping)


[View source]
def vehicle_counts : Hash(String, Hash(String, Tuple(Float64, Int64))) #

[View source]