Skip to content

Commit

Permalink
Revert "smaller fixes with timestamp and unit"
Browse files Browse the repository at this point in the history
This reverts commit 7551ee7
  • Loading branch information
uzoltan committed Jan 29, 2019
1 parent 7551ee7 commit bdbf12b
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -41,9 +41,8 @@ public Response getIt(@Context SecurityContext context, @QueryParam("token") Str
if (FullProviderMain.customResponsePayload != null) {
return Response.status(200).entity(FullProviderMain.customResponsePayload).build();
} else {
double temperature = 21.0;
MeasurementEntry entry = new MeasurementEntry("Temperature_IndoorTemperature", temperature, 0);
TemperatureReadout readout = new TemperatureReadout(providerName, System.currentTimeMillis()/1000, "Cel", 1);
MeasurementEntry entry = new MeasurementEntry("Temperature_IndoorTemperature", 21.0, System.currentTimeMillis());
TemperatureReadout readout = new TemperatureReadout(providerName, System.currentTimeMillis(), "celsius", 1);
readout.getE().add(entry);
return Response.status(200).entity(readout).build();
}
Expand Down

0 comments on commit bdbf12b

Please sign in to comment.