|
|
vor 4 Jahren | |
|---|---|---|
| .. | ||
| main | vor 4 Jahren | |
| tutorial | vor 4 Jahren | |
| CMakeLists.txt | vor 5 Jahren | |
| README.md | vor 5 Jahren | |
| sdkconfig.ci.bluedroid | vor 5 Jahren | |
| sdkconfig.ci.bluedroid_deinit | vor 5 Jahren | |
| sdkconfig.ci.model | vor 5 Jahren | |
| sdkconfig.ci.nimble | vor 5 Jahren | |
| sdkconfig.ci.nimble_deinit | vor 5 Jahren | |
| sdkconfig.ci.proxy00 | vor 5 Jahren | |
| sdkconfig.ci.proxy01 | vor 5 Jahren | |
| sdkconfig.ci.proxy02 | vor 5 Jahren | |
| sdkconfig.ci.proxy03 | vor 5 Jahren | |
| sdkconfig.ci.proxy04 | vor 5 Jahren | |
| sdkconfig.ci.proxy05 | vor 5 Jahren | |
| sdkconfig.defaults | vor 5 Jahren | |
| sdkconfig.defaults.esp32c3 | vor 4 Jahren | |
| sdkconfig.defaults.esp32s3 | vor 4 Jahren | |
| 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.