12-22-2017, 08:54 PM
Good evening,
For many months, I try to run the command "$CLOUD GET:TIME" without any success.
I use an RTC module witch "slips" of several minutes after one month, and it is a pitty not being able to get Internet time as mentionned in the "$CLOUD commands.
I try this with a very simple sketch like this :
void setup() {
Serial2.begin(57600);
Serial.begin(9600);
Serial2.println("$CLOUD GET:TIME");
delay(800); }
void loop() {
while ((c = Serial2.read()) > '\n') Msg += (char) c;
if (c == '\n')
{ Serial.println(Msg);
Msg = "";} }
As response, I only get this :
$OK-TCP2-Connecting
$OK-CLOUD
$TCP2:CONNECTED
$TCP2:SENT:1
and no String containing the expected time in Java coding...
Any idea ?
For many months, I try to run the command "$CLOUD GET:TIME" without any success.
I use an RTC module witch "slips" of several minutes after one month, and it is a pitty not being able to get Internet time as mentionned in the "$CLOUD commands.
I try this with a very simple sketch like this :
void setup() {
Serial2.begin(57600);
Serial.begin(9600);
Serial2.println("$CLOUD GET:TIME");
delay(800); }
void loop() {
while ((c = Serial2.read()) > '\n') Msg += (char) c;
if (c == '\n')
{ Serial.println(Msg);
Msg = "";} }
As response, I only get this :
$OK-TCP2-Connecting
$OK-CLOUD
$TCP2:CONNECTED
$TCP2:SENT:1
and no String containing the expected time in Java coding...
Any idea ?