class IoTivity::Device

Overview

An IoTivity device.

Defined in:

device.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(uuid : UUID, endpoints : Pointer(OC::Endpoint)) #

[View source]
def self.new(device_id : String, endpoints : Pointer(OC::Endpoint)) #

[View source]

Instance Method Detail

def [](uri) #

[View source]
def []?(uri) #

[View source]
def endpoints : Pointer(OC::Endpoint) #

The endpoints (IP addresses) at which this device can be found.


[View source]
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.


[View source]
def res=(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.


[View source]
def reset #

[View source]
def uuid : UUID #

The unique device id ("di") of this device within the network.


[View source]