struct

PlaceOS::Driver::Interface::DeviceInfo::Descriptor

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(make : String, model : String, serial : Nil | String = nil, firmware : Nil | String = nil, mac_address : Nil | String = nil, ip_address : Nil | String = nil, hostname : Nil | String = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

firmware

The version of code running on the device

Source
firmware=(firmware : String | Nil)

The version of code running on the device

Source
hostname

The DNS/mDNS name of the device

Source
hostname=(hostname : String | Nil)

The DNS/mDNS name of the device

Source
ip_address

The network address

Source
ip_address=(ip_address : String | Nil)

The network address

Source
mac_address

The network hardware address

Source
mac_address=(mac_address : String | Nil)

The network hardware address

Source
make

The manufacturer of the device

Source
make=(make : String)

The manufacturer of the device

Source
model

The product identifier

Source
model=(model : String)

The product identifier

Source
serial

The unique identifier

Source
serial=(serial : String | Nil)

The unique identifier

Source