Skip to content
Snippets Groups Projects
Commit 0a5b4e3c authored by Volker Richert's avatar Volker Richert
Browse files

adapt JSON #61

(cherry picked from commit 454645ba)
parent 55822fb3
No related branches found
No related tags found
No related merge requests found
......@@ -259,11 +259,13 @@ public class NightscoutUploadIntentService extends IntentService {
iob.put("bolusiob", record.getActiveInsulin());
JSONObject status = new JSONObject();
// todo put real status in here....
status.put("status", "normal");
status.put("timestamp", record.getPumpDate());
status.put("bolusing", record.isBolusing());
status.put("suspended", record.isSuspended());
if (record.isBolusing()) {
status.put("bolusing", true);
} else if (record.isSuspended()) {
status.put("suspended", true);
} else {
status.put("status", "normal");
}
JSONObject battery = new JSONObject();
battery.put("percent", record.getBatteryPercentage());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment