|
|
пре 2 година | |
|---|---|---|
| .. | ||
| main | пре 2 година | |
| tutorial | пре 4 година | |
| CMakeLists.txt | пре 3 година | |
| README.md | пре 3 година | |
| sdkconfig.ci.bluedroid | пре 5 година | |
| sdkconfig.ci.bluedroid_deinit | пре 5 година | |
| sdkconfig.ci.model | пре 5 година | |
| sdkconfig.ci.nimble | пре 5 година | |
| sdkconfig.ci.nimble_deinit | пре 5 година | |
| sdkconfig.ci.proxy00 | пре 5 година | |
| sdkconfig.ci.proxy01 | пре 5 година | |
| sdkconfig.ci.proxy02 | пре 5 година | |
| sdkconfig.ci.proxy03 | пре 5 година | |
| sdkconfig.ci.proxy04 | пре 5 година | |
| sdkconfig.ci.proxy05 | пре 5 година | |
| sdkconfig.defaults | пре 5 година | |
| sdkconfig.defaults.esp32c3 | пре 3 година | |
| sdkconfig.defaults.esp32c6 | пре 2 година | |
| sdkconfig.defaults.esp32h2 | пре 2 година | |
| sdkconfig.defaults.esp32s3 | пре 3 година | |
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | 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.