Hello Carriots users,
I would appreciate to have some examples of the console use :
For example, when I write in 'Write your code here:'
the answer in 'SDK engine response:' is
Details: 'Cannot get property \'device\' on null object'
I have the same error for all similar commands :
Details: 'Cannot get property \'Vbat\' on null object'
Could you please help me to write the missing command to access the stream data ('Vbat' for example) ?
What I want to do is to send an Email alert when the low battery voltage of my Arduino sending data to Carriots is detected.
To do that I use the if expression :
The Email is sent. That works.
I need also to add in the Email message an old data from my stream :
For example :
At 09:00 I send "Vbat":3.1
At 10:00 I send "test":"Ok"
At 10:30 I send "Vbat":3.1
At 11:00 I send "Vbat":2.9
At this moment, The Email alert is sent because Vbat<3.0 ,
In the email.message , I added these lines :
email.message+="Data 'test' = ";
But I get in the Email :
How can I access to 'old' data in the stream ?