device

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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