Problem reading variables in iOS app

OK I’m having an odd issue which maybe someone can help with.

I’m writing a swift app for iOS which reads a number of variables off a Photon and displays them on the screen. Nothing taxing really.

I have these defined in my Photon code

Spark.variable("currentTemp", &WaterTempC, DOUBLE);
Spark.variable("HighTemp", &setHighTemp, DOUBLE);
Spark.variable("LowTemp", &setLowTemp, DOUBLE);
Spark.variable("TempVariance", &setTempDeadband, DOUBLE);
Spark.variable("HeaterOn", &Heater_On, INT);
Spark.variable("ChillerOn", &Chiller_On, INT);

Chiller_On is causing an issue.

I read all these items out of the Photon one at a time, and all seem to be updating correctly, except Chiller_On which is reading back as true all the time. Everything using these variables on the Photon is working fine so it’s almost as if the read from iOS over the cloud is picking up the wrong value. Anyone else seen something like this?

Pete

Nobody else seen this issue?

Have you checked the value via any other client (e.g Particle CLI, Particle Dev, this or that)?

Have you checked, if the variables got registered successfully?

as per docs:

 Returns a success value - true when the variable was registered.

Good point, will check that.