DeviceProps
Properties for defining a Device.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-iot-device
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkiot"
&alicloudroscdkiot.DeviceProps {
ProductKey: interface{},
DevEui: interface{},
DeviceName: interface{},
IotInstanceId: interface{},
Nickname: interface{},
PinCode: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
ProductKey | interface{} | Property productKey: The identifier of the product to which the device to be registered belongs. |
DevEui | interface{} | Property devEui: The DevEUI of the LoRaWAN device. |
DeviceName | interface{} | Property deviceName: The DeviceName of the device. |
IotInstanceId | interface{} | Property iotInstanceId: The ID of the instance. |
Nickname | interface{} | Property nickname: The alias of the device. |
PinCode | interface{} | Property pinCode: The PIN code of the LoRaWAN device. |
ProductKeyRequired
ProductKey interface{}
- Type: interface{}
Property productKey: The identifier of the product to which the device to be registered belongs.
DevEuiOptional
DevEui interface{}
- Type: interface{}
Property devEui: The DevEUI of the LoRaWAN device.
This parameter is required when you create a LoRaWAN device.
DeviceNameOptional
DeviceName interface{}
- Type: interface{}
Property deviceName: The DeviceName of the device.
The name must be 4 to 32 characters in length, and can contain letters, digits, hyphens (-), underscores (_), at signs (@), periods (.), and colons (:). You can use a combination of the DeviceName and ProductKey parameters to identify a device.
If you do not specify this parameter, IoT Platform randomly generates a DeviceName.
IotInstanceIdOptional
IotInstanceId interface{}
- Type: interface{}
Property iotInstanceId: The ID of the instance.
You can view the instance ID on the Overview page in the IoT Platform console.
- If your instance has an ID, you must configure this parameter. If you do not set this parameter, the call fails.
- If your instance has no Overview page or ID, you do not need to set this parameter.
NicknameOptional
Nickname interface{}
- Type: interface{}
Property nickname: The alias of the device.
The alias must be 4 to 64 characters in length, and can contain letters, digits, and underscores (_).
If you do not specify this parameter, IoT Platform does not generate an alias for the device.
PinCodeOptional
PinCode interface{}
- Type: interface{}
Property pinCode: The PIN code of the LoRaWAN device.
This parameter is used to verify the DevEUI. When you create a LoRaWAN device, set LoraNodeType to CUSTOMDEFINED. This parameter is required.