Browse Source

Allow any value in sensors

develop
Robin Thoni 6 years ago
parent
commit
6871df9afd
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      app/src/main/java/com/rthoni/camotion/dbo/SensorValueDbo.java

+ 4
- 4
app/src/main/java/com/rthoni/camotion/dbo/SensorValueDbo.java View File

12
  */
12
  */
13
 public class SensorValueDbo extends LuDbo {
13
 public class SensorValueDbo extends LuDbo {
14
 
14
 
15
-    private int _value;
15
+    private String _value;
16
 
16
 
17
-    public int getValue() {
17
+    public String getValue() {
18
         return _value;
18
         return _value;
19
     }
19
     }
20
 
20
 
21
-    public void setValue(int value) {
21
+    public void setValue(String value) {
22
         _value = value;
22
         _value = value;
23
     }
23
     }
24
 
24
 
25
     @Override
25
     @Override
26
     public void fromJson(JSONObject json) throws JSONException {
26
     public void fromJson(JSONObject json) throws JSONException {
27
-        _value = json.getInt("Value");
27
+        _value = json.getString("Value");
28
     }
28
     }
29
 
29
 
30
     @Override
30
     @Override

Loading…
Cancel
Save