Deskop values on mobile showing to many decimal digits

I have a desktop with temperature, humidity and barometric widgets. Decimal digits is set to one, and is only showing one on web, also on phone preview. On my phone it is showing several digits. Is this a know bug? Any workaround?



Here is the code: edited


#include "thingProperties.h"
#include <Wire.h>
#include <Adafruit_BMP280.h>
#include <AHT20.h>
 
Adafruit_BMP280 bmp;
AHT20 AHT20;

void setup() {
Serial.begin(115200);
Serial.println(F("AHT20+BMP280 test"));
Wire.begin(); 
while (AHT20.begin() != true) {
Serial.println(F("AHT20 not connected or fail to load calibration coefficient")); //(F()) save string to flash & keeps dynamic memory free
delay(5000);
}
Serial.println(F("AHT20 OK"));
 
if (!bmp.begin()) {
Serial.println(F("Could not find a valid BMP280 sensor, check wiring!"));
while (1);
}



bmp.setSampling(Adafruit_BMP280::MODE_NORMAL, /* Operating Mode. */
Adafruit_BMP280::SAMPLING_X2, /* Temp. oversampling */
Adafruit_BMP280::SAMPLING_X16, /* Pressure oversampling */
Adafruit_BMP280::FILTER_X16, /* Filtering. */
Adafruit_BMP280::STANDBY_MS_500); /* Standby time. */

  initProperties();
 
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);

  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}

void loop() {
ArduinoCloud.update();


CloudTemperatureSensor();
temperature = AHT20.getTemperature(); 
CloudRelativeHumidity();
humidity = AHT20.getHumidity();
CloudPressure();
pressure = bmp.readPressure()/100;
delay(1000);
  } 

That would most likely have to do with the code running on the phone.

It's cloud based. Same code everywhere. Works in preview.

But "the problem" seems to be unique to your phone.

Same on iPad.

Hi @nesogram can you share which application version you have installed?

On Android 3.2.0 last updated 29.05.2024

Installed on Ipad yesterday for testing purposes.