class Cisco::Meraki::MQTT
- Cisco::Meraki::MQTT
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Sensor
Defined in:
cisco/meraki/mqtt.crConstant 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
- #connected
-
#crossing_people : Hash(String, Tuple(Int32, Int64))
Serial => count
- #crossing_vehicle : Hash(String, Tuple(Int32, Int64))
- #disconnected
- #lux : Hash(String, Tuple(Float64, Int64))
- #on_load
- #on_unload
- #on_update
- #people_counts : Hash(String, Hash(String, Tuple(Float64, Int64)))
- #ping
- #received(data, task)
-
#sensor(mac : String, id : String | Nil = nil) : Detail | Nil
return the specified sensor details
-
#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)
- #vehicle_counts : Hash(String, Hash(String, Tuple(Float64, Int64)))
Class Method Detail
Instance Method Detail
def sensor(mac : String, id : String | Nil = nil) : Detail | Nil
#
return the specified sensor details
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)