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 ‘…’ "
My code goes like this
char event; String rubyclock;
rubyclock=Time.timeStr(); sprintf(event,"%s %f",rubyclock,tempC); Particle.publish("event",String(event)); }
I need a solution for this, please help me.I want to send both TIMESTAMP and sensor data in one event.So how can I convert