Matter Open IoT SDK Lock-App Example Application#
The Open IoT SDK Lock Example demonstrates how to remotely control a door lock a device with one basic bolt.
The example behaves as a Matter accessory, device that can be paired into an existing Matter network and can be controlled by it.
Build-run-test-debug#
For information on how to build, run, test and debug this example and further information about the platform it is run on see Open IoT SDK examples.
The example name to use in the scripts is lock-app
.
Example output#
When the example runs, these lines should be visible:
[INF] [-] Open IoT SDK lock-app example application start
...
[INF] [-] Open IoT SDK lock-app example application run
This means the lock-app application launched correctly and you can follow traces in the terminal.
Commissioning#
Read the Open IoT SDK commissioning guide to see how to use the Matter controller to commission and control the application.
DoorLock cluster usage#
The application fully supports the DoorLock cluster. Use its commands to trigger actions on the device. You can issue commands through the same Matter controller you used to perform the commissioning step above.
Example command:
chip-tool doorlock lock-door 123 1 --timedInteractionTimeoutMs 100
In response the device will output this line to the terminal:
[INF] [ZCL] Door Lock App: setting door lock state to "Locked" [endpointId=1]
NOTE
More details about the chip-tool
controller can be found
here.