Restricting number of decimal places sent?

Is there a way to restrict the number of decimal places that cayenne.virtualWrite sends?
I am seeing it send three every time i send a float, and I would prefer only one to make the graphs nicer - to much “jitter” otherwise

Can you show the output of serial monitor and the code you are using


Sends a value

Just want to restrict this to sending x.x

do you want it to be shown as x.x on dashboard or you want to truncate on device?
if on dashboard then in seting you can adjust the number of decimal places to 1.
on device then you can truncate using something like:

float x = 1.6634;
char y[5];
void setup() {
  dtostrf(x, 5, 1, y);
void loop(){

I’m truncating the display in dash board already but the graph still shows the 3 decimal places and its all jitter – which I’d like to remove by truncating on the device

I’ll see if that code fits tomorrow and let you know – super tight on code space

@tim2 about the storage space issue, can you try connecting using manual connection code Cayenne-MQTT-Arduino/ManualConnection.ino at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub

it saves around 10% of space.

I’ll experiment with that – just complicates device deployment with manual configuration required