Run Device Service Components
To run the Device Services, complete the following steps:
-
Ensure that the relevant [device_service_name]_device_service.json file and any other required configuration files, such as device profiles, are in the config folder. For further information on device profiles, see Device Profiles.
-
Set the environment variables required for XRT:
XRT_PROFILE_DIR
, which points towards the directory containing any device profiles that will be usable with the device serviceXRT_STATE_DIR
, which points towards the directory containing any state required for using the device service, such as schedules and devicesXRT_LICENSE_FILE
, which points to the location of license.json, as the name implies. Obtain a licence from IoTech and supply the path as this environment variable
-
Run the XRT executable using the following command where <config_directory> provides the location of the config folder and <time_in_seconds> defines the time for which XRT is to run in seconds:
xrt <config_directory> <time_in_seconds>