moving ble options into bluetooth project, use Just Works by default

This commit is contained in:
Peli de Halleux 2017-05-30 15:37:24 -07:00
parent a2eeedac62
commit f4aa1bf8af
2 changed files with 45 additions and 45 deletions

View File

@ -30,7 +30,48 @@
"microbit-dal": { "microbit-dal": {
"gatt_table_size": "0x700" "gatt_table_size": "0x700"
} }
} },
"userConfigs": [
{
"description": "Unsecure Pairing: Anyone can connect via Bluetooth.",
"config": {
"microbit-dal": {
"bluetooth": {
"open": 1,
"pairing_mode": 0,
"whitelist": 0,
"security_level": null
}
}
}
},
{
"description": "JustWorks pairing (default): Button press to pair.",
"config": {
"microbit-dal": {
"bluetooth": {
"open": null,
"pairing_mode": null,
"whitelist": null,
"security_level": null
}
}
}
},
{
"description": "Passkey pairing: Button press and 6 digit key to pair.",
"config": {
"microbit-dal": {
"bluetooth": {
"open": 0,
"pairing_mode": 1,
"whitelist": 1,
"security_level": "SECURITY_MODE_ENCRYPTION_WITH_MITM"
}
}
}
}
]
}, },
"installedVersion": "vzlhfd" "installedVersion": "vzlhfd"
} }

View File

@ -70,47 +70,6 @@
"security_level": "SECURITY_MODE_ENCRYPTION_NO_MITM" "security_level": "SECURITY_MODE_ENCRYPTION_NO_MITM"
} }
} }
}, }
"userConfigs": [
{
"description": "Bluetooth Unsecure Pairing: Anyone can connect via Bluetooth.",
"config": {
"microbit-dal": {
"bluetooth": {
"open": 1,
"pairing_mode": 0,
"whitelist": 0,
"security_level": null
}
}
}
},
{
"description": "Bluetooth JustWorks pairing (default): Button press to pair.",
"config": {
"microbit-dal": {
"bluetooth": {
"open": null,
"pairing_mode": null,
"whitelist": null,
"security_level": null
}
}
}
},
{
"description": "Bluetooth Passkey pairing: Button press and 6 digit key to pair.",
"config": {
"microbit-dal": {
"bluetooth": {
"open": 0,
"pairing_mode": 1,
"whitelist": 1,
"security_level": "SECURITY_MODE_ENCRYPTION_WITH_MITM"
}
}
}
}
]
} }
} }