Java question about ModuleServices | Telit Cinterion IoT Developer Community
September 12, 2016 - 2:46pm, 1646 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 "+
ModuleServices.getModuleInformation().sendBoardTemperatureReport()+
" ");
but is not posible,sends error:the operator + is undefined...
there is a way to write it ?
Hello,
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.
Regards,
Bartłomiej