Hello, What is the " param_val_t " in the write callback function in the esp rainmaker code ?
I saw some people use val.val.b and other use val.val.f
and can I use this value to import it in void function ?
esp rainmaker
-
- Posts: 32
- Joined: Tue Jul 26, 2022 10:08 am
Re: esp rainmaker
Hi @ayman.dab.
1. `param_val_t` is a structure that holds the value of a parameter (ex. name, temperature, etc.)
2. val.val.f is used to refer float data types and val.val.b is used for boolean types. You can read the API docs for more details https://docs.espressif.com/projects/esp ... tml#unions
3. You can import these values in other functions.
Regards,
Sanket
1. `param_val_t` is a structure that holds the value of a parameter (ex. name, temperature, etc.)
2. val.val.f is used to refer float data types and val.val.b is used for boolean types. You can read the API docs for more details https://docs.espressif.com/projects/esp ... tml#unions
3. You can import these values in other functions.
Regards,
Sanket
Who is online
Users browsing this forum: No registered users and 15 guests