Java question about ModuleServices | Telit Cinterion IoT Developer Community
September 12, 2016 - 2:46pm, 1507 views
Hello, I have on SensorLogic LOG_LEVEL=3 (as INFO)
there shows me:
[DEBUG] [BoardTemperatureMeasurementMonitor]: sending measurement: 28
[INFO] [TaskProcessor] MessageTask_6(board_temperature(28,1072938003)) added
and I would like to see this same information about boardtemperature but inside a java code as:
System.out.println("\n Shows Temperature "+
but is not posible,sends error:the operator + is undefined...
there is a way to write it ?
The reason of this error is that the method ModuleServices.getModuleInformation().sendBoardTemperatureReport() does not return anything. So it can't be used as argument for System.out.println() method. This method can be used to trigger in your code the temperature report sending to the SL platform. It will not let you read the module's temperature.