Dave
July 28, 2014, 3:47pm
52
Aha! I bet I know what this is! Race condition in the GetTime post-handshake. Probably isn't normally seen due to small background latency, comes out in local cloud... 1 sec...
edit: posted issue for this here red flashes with user firmware · Issue #18 · particle-iot/spark-server · GitHub
If you're compiling locally, can you try commenting out the send_time_request line here?
}
}
int Spark_Handshake(void)
{
Spark_Protocol_Init();
spark_protocol.reset_updating();
int err = spark_protocol.handshake();
Multicast_Presence_Announcement();
spark_protocol.send_time_request();
unsigned char patchver[2];
nvmem_read_sp_version(patchver);
char patchstr[8];
snprintf(patchstr, 8, "%d.%d", patchver[0], patchver[1]);
Spark.publish("spark/cc3000-patch-version", patchstr, 60, PRIVATE);
return err;
}
Thanks,
David