Device model configuration
The device model configuration object allows establishing the basic configuration for a device model, typically used in device model configuration scripts.
The getConfiguration 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.
Properties
### 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 below), the platform will use the text corresponding to the user's preferred language.
Examples
This example shows the address of the first endpoint of a device, through the log console.
config.addressLabel = {en: "MAC address", es: "Dirección MAC"};