class IoTivity::Device
- IoTivity::Device
- Reference
- Object
Overview
An IoTivity device.
Defined in:
Constant 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)
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
def endpoints : Pointer(OC::Endpoint)
#
The endpoints (IP addresses) at which this device can be found.
def res : Hash(String, IoTivity::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.