GET reads all return same variable value

Nope, but DOUBLE will compile… however won’t give you a valid value yet from the cloud. A fix is in the works!

For now you can do this, and send you DOUBLE or FLOAT as a string:

double temperature = 1.0;
char myStr[10];

void setup() {
  Spark.variable("read", &myStr, STRING);
}

void loop() {
  temperature += 0.5;
  sprintf(myStr,"%.2f",temperature);
  delay(500);
}
1 Like