tree: 43552282f3d3d40bc02c27a3c6d30e70253accb2 [path history] [tgz]
  1. include/
  2. src/
  3. third_party/
  4. .gn
  5. args.gni
  6. BUILD.gn
  7. README.md
examples/lighting-app/stm32/README.md

Matter STM32 Lighting Example over thread

This example demonstrates the Matter Lighting application on stm32 platform.



Building and Commissioning

Please refer Building and Commissioning guides to get started

./scripts/build/build_examples.py --target stm32-$stm32_BOARD-lighting build

Cluster Control

After successful commissioning, use chip-tool to control the board

  • OnOff Cluster

    ./chip-tool onoff on <NODE ID> 1
    ./chip-tool onoff off <NODE ID> 1
    ./chip-tool onoff toggle <NODE ID> 1
    
  • LevelControl Cluster

    ./chip-tool levelcontrol move-to-level 128 10 0 0 <NODE ID> 1
    
  • ColorControl Cluster

    ./chip-tool colorcontrol move-to-hue-and-saturation 240 100 0 0 0 <NODE ID> 1
    

Indicate current state of lightbulb

The LCD screen displays “BLE connected” when the BLE rendezvous started. The LCD screen displays “Network Join” when the board joins thread network. The LCD screen displays “LED ON” + the light level when the controller enable the light ON and the line is erased when the controller disable the light.