My problem is I want to send
SENSOR DATA and TIMESTAMP together in one string for publishing it on the google sheets using IFTTT.
But as per documentation, we can only send Event name and Data associated with it.But I have to send two different data under one event name.So what I did was, I converted both the data’s into one string and used that String variable to publish,
But I got an error showing that
"cannot pass objects of non-trivially-copyable type ‘class String’ through ‘…’ "
So what I did was I declared a variable “rubyclock” that would hold this returned String value.Then passed that string value to sprintf.Whether what I have done is right or wrong?
I have a doubt in sending timestamp values to google sheets.Which function should I use to get current Timestamp.
I need to the store Timestamp along with the corresponding sensor value when there is no WiFi connectivity and later publish to google sheets when WiFi connection available.This is my problem and I had written code for this problem.
But finding difficult whether which ‘time function’ should I use to get the Timestamp for saving purpose.