diff --git a/app/src/main/java/hpsaturn/pollutionreporter/models/ResponseConfig.java b/app/src/main/java/hpsaturn/pollutionreporter/models/ResponseConfig.java index c607f914..900bde03 100644 --- a/app/src/main/java/hpsaturn/pollutionreporter/models/ResponseConfig.java +++ b/app/src/main/java/hpsaturn/pollutionreporter/models/ResponseConfig.java @@ -27,6 +27,12 @@ public class ResponseConfig extends SensorConfig { public String lskey; - + public String vmac; + + public String vflv; + + public String vtag; + + public int vrev = 0; } diff --git a/app/src/main/java/hpsaturn/pollutionreporter/view/SettingsSensorFragment.java b/app/src/main/java/hpsaturn/pollutionreporter/view/SettingsSensorFragment.java index 4f98d63d..2448d51e 100644 --- a/app/src/main/java/hpsaturn/pollutionreporter/view/SettingsSensorFragment.java +++ b/app/src/main/java/hpsaturn/pollutionreporter/view/SettingsSensorFragment.java @@ -409,7 +409,14 @@ private String getInfluxDbDname() { **********************************************************************************************/ private void saveDeviceInfoString(ResponseConfig config) { - String info = "wmac:"+config.wmac+" wifi:"+(config.wsta ? "connected" : "failed"); + String info = "MAC:" + + config.vmac + +"\nFirmware: "+config.vflv+" rev"+config.vrev + +"\nChannel :\t"+config.vtag + +"\nWiFi:"+(config.wenb ? "enable" : "disable") + +" IFDB:"+(config.ienb ? "enable" : "disable") + +"\nGW:"+(config.wsta ? "connected" : "disconnected"); + if(config.vrev<774)info="\n!!YOUR FIRMWARE IS OUTDATED!!\n\n"+info; updateSummary(R.string.key_device_info,info); saveSharedPreference(R.string.key_device_info,info); } @@ -590,6 +597,10 @@ private void printResponseConfig(ResponseConfig config) { Logger.i(TAG, "[Config] -----------------------------"); Logger.i(TAG, "[Config] wifist: " + config.wsta); Logger.i(TAG, "[Config] wmac : " + config.wmac); + Logger.i(TAG, "[Config] vrev : " + config.vrev); + Logger.i(TAG, "[Config] vmac : " + config.vmac); + Logger.i(TAG, "[Config] vflv : " + config.vflv); + Logger.i(TAG, "[Config] vtag : " + config.vtag); Logger.i(TAG, "[Config] lskey : " + config.lskey); }