Info
This question is closed. Reopen it to edit or answer.
Using constants in field values
1 view (last 30 days)
Show older comments
Hello,
I am using one field to serve as a threshold (in my case humidity thres - h_thresh, field 8). When my esp 32 humidity sensor read is > than h_thres, esp 32 sends an e-mail.
The problem is that the esp 32 populates the humidity field (field 1) periodically (20 seconds in my case) and the h_thresh field gets automatically populated with NaN for the corresponding timestamps of humidity field.
When I read the h_thres field latest value from MathLab, I get NaN instead of the integer I set previously.
What would be the best practice to store such a constant in a field?
Curious enough, for me, is that when using the Arduino ThingsSpeak library, when I read the h_thres field, I always get the integer value returned, not NaN, even if there are multiple values written in the meantime in humidity field and NaN in the h_thres field.
Thanks,
George
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!