device

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 0 Imported by: 2

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"`
	ResourceTypes         []string          `json:"rt"`
	Interfaces            []string          `json:"if"`
	Name                  string            `json:"n"`
	ManufacturerName      []LocalizedString `json:"dmn"`
	ModelNumber           string            `json:"dmno"`
	ProtocolIndependentID string            `json:"piid"`
}

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