PublisherSupplier supplier = PublisherSupplier.builder() .addHeader("timestamp, value") .addHeader("datetime, float") .addHeader("T, B") //see SensorFlags.java for more info .build();
This is a commonly used example. For the float type metric ‘value’, the sensor flag is set to ‘B’ (meaning Blank). If I set it to ‘L’ (learn), I get the following exception:
Caused by: java.lang.NumberFormatException: For input string which is ‘value’.
The type of ‘value’ is double (e.g. 4.000). It’s caused because it tries to parse the value as Integer (because Integer.parseInt(String s) is called in the stacktrace).
Any idea why?
Thanks in advance!