Hi I am writing some firmware for a new device and am trying to setup our time synchronization routines. I tried this code from the documentation:
void loop()
{
// Request time synchronization from the Particle Device Cloud
Particle.syncTime();
// Wait until Photon receives time from Particle Device Cloud (or
connection to Particle Device Cloud is lost)
while(Particle.syncTimePending())
{
//
// Do something else
//
Particle.process();
}
// Print current time
Serial1.println(Time.timeStr());
}
I get the error
'class CloudClass' has no member named 'syncTimePending'
It seems like I am using the wrong namespace or need to include something. I get this error in the local IDE and in the web IDE.
Tyler