Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 792 Bytes

rpc_console.md

File metadata and controls

38 lines (24 loc) · 792 Bytes

Bouffalo Lab with RPC console

Build image

  • BL602DK

    ./scripts/build/build_examples.py --target bouffalolab-bl602dk-light-wifi-littlefs-rpc build
  • BL704LDK

    ./scripts/build/build_examples.py --target bouffalolab-bl704ldk-light-thread-littlefs-rpc build
  • BL706DK

    ./scripts/build/build_examples.py --target bouffalolab-bl706dk-light-thread-littlefs-rpc build

Run RPC Console

  • Build chip-console following this guide

  • Start the console

    $ chip-console -d /dev/ttyACM0 -b 115200
    
  • Get or Set the light state

    rpcs.chip.rpc.Lighting.Get()

    rpcs.chip.rpc.Lighting.Set(on=True, level=128)