device

package
v2.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 17

Documentation

Overview

Device info. https://github.com/openconnectivityfoundation/core/blob/master/swagger2.0/oic.wk.d.swagger.json

Index

Constants

View Source
const (
	ResourceType = "oic.wk.d"
	ResourceURI  = "/oic/d"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	ID                    string            `json:"di,omitempty"`
	ResourceTypes         []string          `json:"rt,omitempty"`
	Interfaces            []string          `json:"if,omitempty"`
	Name                  string            `json:"n,omitempty"`
	ManufacturerName      []LocalizedString `json:"dmn,omitempty"`
	ModelNumber           string            `json:"dmno,omitempty"`
	ProtocolIndependentID string            `json:"piid,omitempty"`
	DataModelVersion      string            `json:"dmv,omitempty"`
	SpecificationVersion  string            `json:"icv,omitempty"`
	SoftwareVersion       string            `json:"sv,omitempty"`
	EcosystemName         string            `json:"econame,omitempty"`
	EcosystemVersion      string            `json:"ecoversion,omitempty"`
}

func (Device) GetManufacturerName

func (d Device) GetManufacturerName() string

GetManufacturerName finds the manufacturer name in English. https://tools.ietf.org/html/rfc5646#section-2.2.1

type LocalizedString

type LocalizedString struct {
	Language string `json:"language"`
	Value    string `json:"value"`
}

LocalizedString struct.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL