3 Running the Application
Once the code is uploaded to the evaluation board, use a terminal application and connect it to the board communication port.
When the console is started, the help message should be displayed:
The board will work even if no D4i gear is connected to it, but in that case it will print the error message, notifying of a DALI bus failure.
If motion reaction or ambient reaction is used, the light intensity will automatically be updated.
When lte_on
is used, the LTE module will be enabled and it will try to
connect to the LTE network. This may take some time, and debug messages are printed at
each step to detect if any issue may appear:
After the module connects to the LTE network, it will verify if it has internet connection and after that start configuring the MQTT:
Once configured and subscribed to the command topic, it will periodically check the topic and publish data to a status topic.
The serial communication offers a fast and easy way to control a D4i gear, if the project is in the development stage. Later on, the LTE communication offers the possibility to remotely control a D4i gear.