SORACOM Funnel no longer converts decimal to integer data transfer
When using SORACOM Funnel to send data from a device to a cloud service, Funnel will now preserve decimal value notation when the fractional part of a decimal value contains all 0
s.
For example, when a device sends data {"temperature": 20.0}
, Funnel previously converted the value to an integer and sent the data as {"temperature": 20}
. Now, Funnel will send the data as {"temperature": 20.0}
without converting the value to an integer.
Note that if the value contains more than one trailing 0
in the fractional part of the decimal, only the first 0
will be preserved. For example, if a device sends data {"temperature": 20.00}
, Funnel will send the data as {"temperature": 20.0}
to the cloud service.
Please be aware that if your cloud service is configured to check the presence or absence of a decimal point .
in order to determine the data type (decimal or integer), this change will affect the behavior of the cloud service.