|
|
před 2 roky | |
|---|---|---|
| .. | ||
| main | před 2 roky | |
| tutorial | před 2 roky | |
| CMakeLists.txt | před 2 roky | |
| README.md | před 2 roky | |
| sdkconfig.ci.bluedroid | před 2 roky | |
| sdkconfig.ci.bluedroid_deinit | před 2 roky | |
| sdkconfig.ci.model | před 2 roky | |
| sdkconfig.ci.nimble | před 2 roky | |
| sdkconfig.ci.nimble_deinit | před 2 roky | |
| sdkconfig.ci.proxy00 | před 2 roky | |
| sdkconfig.ci.proxy01 | před 2 roky | |
| sdkconfig.ci.proxy02 | před 2 roky | |
| sdkconfig.ci.proxy03 | před 2 roky | |
| sdkconfig.ci.proxy04 | před 2 roky | |
| sdkconfig.ci.proxy05 | před 2 roky | |
| sdkconfig.defaults | před 2 roky | |
| sdkconfig.defaults.esp32c3 | před 2 roky | |
| sdkconfig.defaults.esp32c6 | před 2 roky | |
| sdkconfig.defaults.esp32h2 | před 2 roky | |
| sdkconfig.defaults.esp32s3 | před 2 roky | |
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S3 |
|---|
This demo shows how to use the Generic OnOff Client Model to get/set the generic on/off state. The basic procedures are as follows:
Notes:
- The NetKey index and AppKey index are fixed to 0x0000 in this demo.
- If the client device is re-provisioned, but the server device is not, the first few get/set messages from the client will be treated as replay attacks. To avoid this, both devices should be re-provisioned prior to transmitting messages.