class IoTivity::Device

Overview

An IoTivity device.

Defined in:

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

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

def self.new(device_id : String, endpoints : Pointer(OC::Endpoint)) #

Instance Method Detail

def [](uri) #

def []?(uri) #

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.


def res=(res) #

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.


def reset #

def uuid : UUID #

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