use phone name in devicestatus
This commit is contained in:
parent
a2aa8d8bc6
commit
5408562d84
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ package info.nightscout.utils;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
|
|
||||||
|
@ -221,7 +222,7 @@ public class NSUpload {
|
||||||
} else {
|
} else {
|
||||||
log.debug("OpenAPS data too old to upload");
|
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();
|
JSONObject pumpstatus = MainApp.getConfigBuilder().getJSONStatus();
|
||||||
if (pumpstatus != null) {
|
if (pumpstatus != null) {
|
||||||
deviceStatus.pump = pumpstatus;
|
deviceStatus.pump = pumpstatus;
|
||||||
|
|
Loading…
Reference in a new issue