From 475821564e31282e9e7cfa7f8d36ed62183414ac Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 2 Dec 2016 09:45:59 -0800 Subject: [PATCH] fixing justworks support --- libs/bluetooth/pxt.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libs/bluetooth/pxt.json b/libs/bluetooth/pxt.json index a1af7eda..66e6dde0 100644 --- a/libs/bluetooth/pxt.json +++ b/libs/bluetooth/pxt.json @@ -34,7 +34,7 @@ "eddystone_uid": 0, "pairing_mode": 1, "open": 0, - "security_level": "SECURITY_MODE_ENCRYPTION_WITH_MITM" + "security_level": "SECURITY_MODE_ENCRYPTION_NO_MITM" } }, "gatt_table_size": "0x700" @@ -52,6 +52,18 @@ } } }, + { + "description": "JustWorks pairing (default): Button press to pair via Bluetooth.", + "config": { + "microbit-dal": { + "bluetooth": { + "open": 0, + "pairing_mode": 1, + "security_level": "SECURITY_MODE_ENCRYPTION_NO_MITM" + } + } + } + }, { "description": "Passkey pairing: Button press and 6 digit key to pair via Bluetooth.", "config": {