Hello guys,
Can someone explain about the use of param "PROP_FLAG_READ | PROP_FLAG_WRITE | PROP_FLAG_PERSIST" ? what if I want to create a param which is can be read on the Phone(report by ESP32-C3) but can not set by the Phone.
ESP RainMaker learn about the param
-
- Posts: 309
- Joined: Wed Feb 20, 2019 7:02 am
Re: ESP RainMaker learn about the param
PROP_TYPE_READ: Read permission
PROP_FLAG_WRITE: Write permission
PROP_FLAG_PERSIST: Value will be stored in persistent memory and retrieved on a reboot
PROP_FLAG_TIME_SERIES: Value stored in Time Series data on cloud
PROP_FLAG_SIMPLE_TIME_SERIES: Value stored in Simple Time Series data on cloud
Parameters like Power, Brightness, etc. generally have PROP_TYPE_READ | PROP_FLAG_WRITE.
Temperature sensor can have PROP_TYPE_READ | PROP_FLAG_TIME_SERIES (cannot be written from phone app)
Device Name has PROP_TYPE_READ | PROP_FLAG_WRITE | PROP_FLAG_PERSIST as it also gets stored in flash.
For your use case, you can use just PROP_FLAG_READ.
PROP_FLAG_WRITE: Write permission
PROP_FLAG_PERSIST: Value will be stored in persistent memory and retrieved on a reboot
PROP_FLAG_TIME_SERIES: Value stored in Time Series data on cloud
PROP_FLAG_SIMPLE_TIME_SERIES: Value stored in Simple Time Series data on cloud
Parameters like Power, Brightness, etc. generally have PROP_TYPE_READ | PROP_FLAG_WRITE.
Temperature sensor can have PROP_TYPE_READ | PROP_FLAG_TIME_SERIES (cannot be written from phone app)
Device Name has PROP_TYPE_READ | PROP_FLAG_WRITE | PROP_FLAG_PERSIST as it also gets stored in flash.
For your use case, you can use just PROP_FLAG_READ.
Re: ESP RainMaker learn about the param
Hi Piyush,
Nice job. Appreciate!!
Nice job. Appreciate!!
Who is online
Users browsing this forum: No registered users and 67 guests