use phone name in devicestatus

This commit is contained in:
Milos Kozak 2017-06-15 09:45:10 +02:00
parent a2aa8d8bc6
commit 5408562d84

View file

@ -3,6 +3,7 @@ package info.nightscout.utils;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.preference.PreferenceManager;
@ -221,7 +222,7 @@ public class NSUpload {
} else {
log.debug("OpenAPS data too old to upload");
}
deviceStatus.device = "openaps://" + MainApp.getConfigBuilder().deviceID();
deviceStatus.device = "openaps://" + Build.MANUFACTURER + " " + Build.MODEL;
JSONObject pumpstatus = MainApp.getConfigBuilder().getJSONStatus();
if (pumpstatus != null) {
deviceStatus.pump = pumpstatus;