{"action":"opened","issue":{"url":"https://api.github.com/repos/adafruit/Adafruit_nRF52_Arduino/issues/138","repository_url":"https://api.github.com/repos/adafruit/Adafruit_nRF52_Arduino","labels_url":"https://api.github.com/repos/adafruit/Adafruit_nRF52_Arduino/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/Adafruit_nRF52_Arduino/issues/138/comments","events_url":"https://api.github.com/repos/adafruit/Adafruit_nRF52_Arduino/issues/138/events","html_url":"https://github.com/adafruit/Adafruit_nRF52_Arduino/issues/138","id":311846718,"number":138,"title":"[Enhancement]Bonding/Pairing with multiple peers","user":{"login":"samveen","id":1241434,"avatar_url":"https://avatars1.githubusercontent.com/u/1241434?v=4","gravatar_id":"","url":"https://api.github.com/users/samveen","html_url":"https://github.com/samveen","followers_url":"https://api.github.com/users/samveen/followers","following_url":"https://api.github.com/users/samveen/following{/other_user}","gists_url":"https://api.github.com/users/samveen/gists{/gist_id}","starred_url":"https://api.github.com/users/samveen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samveen/subscriptions","organizations_url":"https://api.github.com/users/samveen/orgs","repos_url":"https://api.github.com/users/samveen/repos","events_url":"https://api.github.com/users/samveen/events{/privacy}","received_events_url":"https://api.github.com/users/samveen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-06T04:45:31Z","updated_at":"2018-04-06T04:45:31Z","closed_at":null,"author_association":"NONE","body":"Background:\r\nI am working on a BT Keyboard, where I want to use the same keyboard with multiple devices, without repeatedly pairing against all 3 of my devices.\r\n\r\nWhat I plan:\r\nMy plan is to have implement a 4-way selection switch, to decide on an active bond slot, such that any action such as pairing/un-pairing only affects the selected slot. Once the KB is paired with a device, when I need to pair with a new device, I select an new pairing slot with the selection switch, and bond with the new device. Same applied for any new device I want to pair with. This is **not** multiple concurrent pairing. It is multiple pairing with the ability to select the active pairing.\r\n\r\nWhat I want to do:\r\nI want to enhance the bonding code to allow for such an indexed keypair list, Basically instead of a single set of keys, I maintain an indexed list them, one per paired device, and allow selecting the active index. The actions without any index fall back to using index 0, keeping the older interfaces stable.\r\n\r\nComments on feasibility requested. I can put in an MR in case such an enhancement is acceptable."}}
{"actor":{"display_login":"samveen"}}