modified DeviceEsensorNCAPByWiFiAdapter.java