class IoTivity::Device
- IoTivity::Device
- Reference
- Object
Overview
An IoTivity device.
Defined in:
device.crConstant Summary
-
Log =
::Log.for(self)
Constructors
- .new(uuid : UUID, endpoints : Pointer(OC::Endpoint))
- .new(device_id : String, endpoints : Pointer(OC::Endpoint))
Instance Method Summary
- #[](uri)
- #[]?(uri)
-
#endpoints : Pointer(OC::Endpoint)
The endpoints (IP addresses) at which this device can be found.
-
#res : Hash(String, IoTivity::Resource)
The resources available at this device, stored as a map connecting a URI to the respective resource information.
-
#res=(res : Hash(String, IoTivity::Resource))
The resources available at this device, stored as a map connecting a URI to the respective resource information.
- #reset
-
#uuid : UUID
The unique device id ("di") of this device within the network.
Constructor Detail
Instance Method Detail
The endpoints (IP addresses) at which this device can be found.
The resources available at this device, stored as a map connecting
a URI to the respective resource information. You can also use the
index operators #[]
and #[]?
as shortcut to access a certain resource.
The resources available at this device, stored as a map connecting
a URI to the respective resource information. You can also use the
index operators #[]
and #[]?
as shortcut to access a certain resource.