Page 1 of 1

esp rainmaker

Posted: Sun Sep 11, 2022 5:08 am
by ayman.dab
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 ?

Re: esp rainmaker

Posted: Mon Sep 12, 2022 8:45 am
by sanketwadekar
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