Device model configuration
The 设备模型配置 object allows establishing the basic configuration for a device model, typically used in 设备模型配置 scripts.
The get配置 function receives an object of this type as a parameter, which allows establishing the basic configuration of the device model for which the script has been written.
属性
addressLabel (string or multi-language literal) The addressLabel property allows setting the text to be displayed in the user interface for the "address" field. For example, if it is a LoRaWAN device, it would be preferable to use the name "DEVEUI" instead of "address", or use "MAC address" if it is a Wi-Fi device. If this property is not set, the default value will be "Address". If a string value is assigned, this string will be used in the UI regardless of the user's preferred language. If a multi-language literal is specified (as in the example 下方), the platform will use the text corresponding to the user's preferred language.
示例
此示例 shows the address of the first endpoint of a device, through the log console.
config.addressLabel = {en: "MAC address", es: "Dirección MAC"};端点
The endpoint object represents an endpoint within a device installed in the platform. 端点 are normally accessed through the endpoints property of the device object.
端点 configuration collection
The endpoint configuration collection object represents a collection of endpoints for which initial configuration is to be established, typically in 设备模型配置 scripts.