Add optional pin parameter to peripheral connection.

This commit is contained in:
Evelyn Eastmond 2019-05-31 11:10:13 -04:00
parent 11b52c4e60
commit 8e302ac90c
2 changed files with 4 additions and 3 deletions

View file

@ -571,7 +571,7 @@ class EV3 {
*/
connect (id) {
if (this._bt) {
this._bt.connectPeripheral(id);
this._bt.connectPeripheral(id, '1234');
}
}