|
|
4 yıl önce | |
|---|---|---|
| .. | ||
| main | 4 yıl önce | |
| tutorial | 5 yıl önce | |
| CMakeLists.txt | 5 yıl önce | |
| Makefile | 5 yıl önce | |
| README.md | 5 yıl önce | |
| sdkconfig.ci.bluedroid | 5 yıl önce | |
| sdkconfig.ci.bluedroid_deinit | 5 yıl önce | |
| sdkconfig.ci.model | 5 yıl önce | |
| sdkconfig.ci.nimble | 5 yıl önce | |
| sdkconfig.ci.nimble_deinit | 5 yıl önce | |
| sdkconfig.ci.proxy00 | 5 yıl önce | |
| sdkconfig.ci.proxy01 | 5 yıl önce | |
| sdkconfig.ci.proxy02 | 5 yıl önce | |
| sdkconfig.ci.proxy03 | 5 yıl önce | |
| sdkconfig.ci.proxy04 | 5 yıl önce | |
| sdkconfig.ci.proxy05 | 5 yıl önce | |
| sdkconfig.defaults | 5 yıl önce | |
| sdkconfig.defaults.esp32c3 | 4 yıl önce | |
| sdkconfig.defaults.esp32s3 | 4 yıl önce | |
| Supported Targets | ESP32 |
|---|
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.