ESP RainMaker learn about the param

Ybin_ESP
Posts: 10
Joined: Wed Apr 10, 2024 2:51 am

ESP RainMaker learn about the param

Postby Ybin_ESP » Fri Nov 15, 2024 2:55 am

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.

:roll:

ESP_Piyush
Posts: 309
Joined: Wed Feb 20, 2019 7:02 am

Re: ESP RainMaker learn about the param

Postby ESP_Piyush » Fri Nov 15, 2024 5:55 am

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.

Ybin_ESP
Posts: 10
Joined: Wed Apr 10, 2024 2:51 am

Re: ESP RainMaker learn about the param

Postby Ybin_ESP » Wed Nov 20, 2024 1:55 am

Hi Piyush,

Nice job. Appreciate!!👍

Who is online

Users browsing this forum: No registered users and 67 guests