Device Information
Principle
The Device Foundation Library provides access to the device information. This includes the architecture name and a unique identifier of the device for this architecture.
Dependencies
LLDEVICE_impl.h
implementation (see LLDEVICE: Device Information).
Installation
Device is an additional module. To enable it, the Device Information Pack module must be installed in your VEE Port:
microejPack("com.microej.pack.audio:audio-pack:1.0.0")
<dependency org="com.microej.pack.audio" name="audio-pack" rev="1.0.0"/>
Then, using the VEE Port Editor (see Platform Module Configuration), enable the Device Information library.
When installed, the Device Information Pack module can be configured.
- In SDK 6, the configuration is done in the properties file
configuration.properties
of the VEE Port project. All the properties names listed below must be prefixed by
com.microej.runtime.device.
. For example thearchitecture
properties is defined by thecom.microej.runtime.device.architecture
property.
In SDK 5, the configuration is done in the properties file device/device.properties
.
The list below describes the properties that can be defined in the configuration file:
architecture
[optional, default value is “Virtual Device”]: Defines the value returned by the ej.util.Device.getArchitecture() method on the Simulator.id.length
[optional]: Defines the size of the ID returned by the ej.util.Device.getId() method on the Simulator.
Use
The Device API Module must be added to the project build file to use the Device Information library:
implementation("ej.api:device:1.0.2")
<dependency org="ej.api" name="device" rev="1.0.2"/>