- 0. Prerequisites
- 1. Publish to LED handler Topic
- 2. Subscribe to Temperature Topic
- 3. Clean WiFi Credentials
0.1 Read README
In SoftAp
mobile application in Provisioned seetings
, then in Encrypted Communication
choose Secured
.
Publish to /filter/%s
to request LED changes. Replace %s for the thing name.
To power on the LED publish to filter/dev-joaquin
:
{
"led":{
"power": 1
}
}
To power off the LED publish to filter/dev-joaquin
:
{
"led":{
"power": 0
}
}
Subscribe to /filter/%s
to listen to temperature changes. Replace %s for the thing name.
Subscribe to filter/dev-joaquin
, and you will receive a message like this:
{
"temperatureSensor": {
"thingName": "dev-joaquin",
"temperatureValue": 0.000000,
"iteration": 432
}
}
To clean the WiFi credentials, you need to enable the flag Erase NVS partition on power on
.
First you need to run the Espressif Menu Config, open a ESP-IDF Terminal
and run idf.py menuconfig
then enable the flag Erase NVS partition on power on
(APP_NVS_FORCE_ERASE) inside Kelsus Camp 2024
menu.