Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindDeviceByName ¶
func FindDeviceByName(ctx context.Context, name string, getResourceOpts func(*core.Device) deviceCoap.OptionFunc) (deviceID string, _ error)
Types ¶
type BaseDevice ¶
type BaseDevice struct {
// contains filtered or unexported fields
}
func MakeBaseDevice ¶
func MakeBaseDevice(id, name string) BaseDevice
func (*BaseDevice) GetID ¶
func (bd *BaseDevice) GetID() string
func (*BaseDevice) GetName ¶
func (bd *BaseDevice) GetName() string
func (*BaseDevice) GetSDKClientOptions ¶
func (bd *BaseDevice) GetSDKClientOptions() []sdk.Option
func (*BaseDevice) SetID ¶
func (bd *BaseDevice) SetID(id string)
type Device ¶
type Device interface {
// GetID returns device ID
GetID() string
// SetID sets device ID
SetID(id string)
// GetName returns device name
GetName() string
// GetRetryInterval returns retry interval of the device before retrying provisioning
GetRetryInterval(attempt int) time.Duration
// GetDefaultResources returns default device resources
GetDefaultResources() schema.ResourceLinks
// GetSDKClientOptions returns options for the SDK client used with this device
GetSDKClientOptions() []sdk.Option
}
Click to show internal directories.
Click to hide internal directories.