Skip to content

DeviceProps

Properties for defining a Device.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-iot-device

Initializer

using AlibabaCloud.SDK.ROS.CDK.Iot;
new DeviceProps {
    object ProductKey,
    object DevEui = null,
    object DeviceName = null,
    object IotInstanceId = null,
    object Nickname = null,
    object PinCode = null
};

Properties

Name Type Description
ProductKey object Property productKey: The identifier of the product to which the device to be registered belongs.
DevEui object Property devEui: The DevEUI of the LoRaWAN device.
DeviceName object Property deviceName: The DeviceName of the device.
IotInstanceId object Property iotInstanceId: The ID of the instance.
Nickname object Property nickname: The alias of the device.
PinCode object Property pinCode: The PIN code of the LoRaWAN device.

ProductKeyRequired

public object ProductKey { get; set; }
  • Type: object

Property productKey: The identifier of the product to which the device to be registered belongs.


DevEuiOptional

public object DevEui { get; set; }
  • Type: object

Property devEui: The DevEUI of the LoRaWAN device.

This parameter is required when you create a LoRaWAN device.


DeviceNameOptional

public object DeviceName { get; set; }
  • Type: object

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

public object IotInstanceId { get; set; }
  • Type: object

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

public object Nickname { get; set; }
  • Type: object

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

public object PinCode { get; set; }
  • Type: object

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.