simulating

package
v0.0.0-...-846844b Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDevice

func NewDevice(ctx context.Context, app *models.CentralApplication, deviceID string,
	boltMachine *models.BoltMachine) *centralDevice

Types

type DeviceProvisioner

type DeviceProvisioner struct {
	// contains filtered or unexported fields
}

DeviceProvisioner responsible for provisioning devices via DPS.

func NewProvisioner

func NewProvisioner(ctx context.Context, app *models.CentralApplication) *DeviceProvisioner

NewProvisioner creates a new deviceProvisioner.

func (*DeviceProvisioner) Provision

Provision provisions a device in IoT Central

type Plant

type Plant struct {
	Name        string `json:"name"`
	BoltMachine struct {
		Count  int    `json:"count"`
		Format string `json:"format"`
	} `json:"boltMachine"`
}

type ProvisioningRequest

type ProvisioningRequest struct {
	DeviceID    string                     // device deviceID to register the device as.
	Context     context.Context            // context of the provision request.
	Application *models.CentralApplication // simulation that is requesting the device provision.
	ModelID     string                     // device model id
}

ProvisioningRequest represents a request to provision a device in IoT Central.

type ProvisioningResponse

type ProvisioningResponse struct {
	*ProvisioningRequest        // the request to which this response is generated.
	ConnectionString     string // Result of the provision request.
}

ProvisioningResponse represents the response for a given provision request.

Jump to

Keyboard shortcuts

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