esp rainmaker

ayman.dab
Posts: 8
Joined: Mon Aug 29, 2022 12:10 pm

esp rainmaker

Postby ayman.dab » Sun Sep 11, 2022 5:08 am

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 ?

sanketwadekar
Posts: 32
Joined: Tue Jul 26, 2022 10:08 am

Re: esp rainmaker

Postby sanketwadekar » Mon Sep 12, 2022 8:45 am

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

Who is online

Users browsing this forum: No registered users and 13 guests