Subversion Repositories SmartDukaan

Rev

Rev 30487 | Rev 30498 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30487 Rev 30490
Line 393... Line 393...
393
 
393
 
394
		Response response = client.newCall(request1).execute();
394
		Response response = client.newCall(request1).execute();
395
 
395
 
396
		JSONObject jsonObj = new JSONObject(response.body().string());
396
		JSONObject jsonObj = new JSONObject(response.body().string());
397
 
397
 
-
 
398
		LOGGER.info("jsonObj" + jsonObj);
398
		JSONObject deviceStatus = jsonObj.getJSONObject("device_status");
399
		JSONObject deviceStatus = jsonObj.getJSONObject("device_status");
399
		String status = deviceStatus.getString("value");
400
		String status = deviceStatus.getString("value");
400
 
401
 
401
		if (status.equals("inactive") || status.equals("disconnected")) {
402
		if (status.equals("inactive") || status.equals("disconnected")) {
402
 
403