diff --git a/src/android/com/megster/cordova/BluetoothSerial.java b/src/android/com/megster/cordova/BluetoothSerial.java index 8be5575f..0b4bafd1 100644 --- a/src/android/com/megster/cordova/BluetoothSerial.java +++ b/src/android/com/megster/cordova/BluetoothSerial.java @@ -329,7 +329,8 @@ private JSONObject deviceToJSON(BluetoothDevice device) throws JSONException { JSONObject json = new JSONObject(); json.put("name", device.getName()); json.put("address", device.getAddress()); - json.put("id", device.getAddress()); + json.put("id", device.getAddress()); + json.put("alias", device.getAlias()); if (device.getBluetoothClass() != null) { json.put("class", device.getBluetoothClass().getDeviceClass()); }