280 Commits

Author SHA1 Message Date
Gordon Williams
e230148625 improve docs making 2019-11-07 16:12:27 +00:00
Gordon Williams
21cc174052 nRF5x: Ensure gatt.connect silently succeeds if we're already connected to the device 2019-10-29 13:12:08 +00:00
Gordon Williams
0c0f103940 nRF5x: Add NRF.filterDevices to allow scanned devices to be easily filtered after scanning 2019-10-21 15:15:53 +01:00
Gordon Williams
68f45f0455 Merge branch 'HACKSTRAP_F18' into HackStrap 2019-10-09 14:03:51 +01:00
Gordon Williams
d995cf1db3 update docs 2019-10-08 10:12:26 +01:00
Gordon Williams
6798bd23e0 Bluetooth docs 2019-10-02 11:33:03 +01:00
Gordon Williams
b0a42c5bb4 nRF52: Add NRF.nfcPair(...) and OOB pairing to allow tap to pair over BLE
nRF52: Add NRF.nfcAndroidApp(...) to launch an Android app on touch
2019-09-19 14:18:57 +01:00
Gordon Williams
f3ed727082 NFC OOB pairing - currently uses Nordic libs for constructing NFC which add loads to the firmware size 2019-09-19 12:35:06 +01:00
Gordon Williams
292b513076 Added promise for getting pressure values 2019-09-05 13:03:23 +01:00
Gordon Williams
e55d08efd0 docs 2019-07-03 14:47:55 +01:00
Gordon Williams
08f3fd370d Fix NRF.requestDevice regression (clearInterval error) (fix #1669) 2019-06-03 12:57:37 +01:00
Gordon Williams
a493355490 Allow NRF.setAddress to work even with services defined and a connection in progress 2019-05-14 15:56:51 +01:00
Gordon Williams
d150ef94fd nRF5x: 'dump()' not outputs NRF.setSecurity line if it has been called. 2019-05-09 09:28:04 +01:00
Gordon Williams
6aea150052 nRF5x: Fix issue when calling NRF.setAdvertising while connected via BLE (fix #1659) 2019-05-03 21:34:37 +01:00
Gordon Williams
e18e0b6746
Merge pull request #1657 from vkolotov/feature-characteristic-security
Feature characteristic security
2019-04-29 09:00:20 +01:00
Vlad Kolotov
1c4449de45 Implementing security configuration for characteristics 2019-04-27 19:48:10 +12:00
Gordon Williams
2722df1a5c nRF52: Fix nRF52840 advertising and remove duplicated advertising code 2019-04-24 10:35:16 +01:00
Gordon Williams
8274d48c33 nRF52: Add NRF.getSecurityStatus to allow devices to detect the current state of the connection 2019-04-23 12:24:40 +01:00
Gordon Williams
b6a256fe77 nRF52: Now create exception if advertising calls fail (but ignore when in IRQ)
nRF52: Add setAdvertising({},{scannable:false}) for disabling scan response
            nRF52: Add note about connectable:false requiring >=100ms intervals
2019-04-04 19:24:37 +01:00
Gordon Williams
2c2533cada nRF52: Don't allow NRF.updateServices while a BLE restart for setServices is queued 2019-03-19 09:48:36 +00:00
Gordon Williams
6a2e3a261f add note about iOS devices 2019-02-28 14:36:17 +00:00
Gordon Williams
ccca3a1e18 docs 2019-02-21 10:47:21 +00:00
Gordon Williams
06e608dc69 nRF52: Fix setScanResponse regression from 2v00 2019-02-21 09:14:33 +00:00
Gordon Williams
adb3b7de04 docs 2019-02-11 17:16:16 +00:00
Gordon Williams
e56d91b044 Added active option to NRF.setScan/findDevices/requestDevices to allow scan response packets to be requested 2019-02-11 09:35:54 +00:00
Gordon Williams
6b40c10f86 Fixed sendPasskey so it sends the correct string 2019-02-05 09:23:30 +00:00
Gordon Williams
ce85b5ee57 nRF52: Add option for static passkey pairing with NRF.setSecurity 2019-01-31 17:30:38 +00:00
Gordon Williams
eeb9ec8dd5 nRF52: Add docs for properties that weren't documented before
nRF52: Add ability to connect to device with passkey authentication
2019-01-31 14:23:26 +00:00
Gordon Williams
fde83a6057 nRF52: Ensure Bluetooth stack doesn't do a reboot for non-fatal errors (just report them to console)
BluetoothRemoteGATTServer.disconnect now returns a Promise
2018-11-26 17:25:13 +00:00
Gordon Williams
04073feced nRF52: Fix some regressions in requestDevice (flagged up by asserts in debug build) 2018-11-22 17:05:17 +00:00
Gordon Williams
5c561f053b docs 2018-11-02 09:40:09 +00:00
Gordon Williams
f1f8b75a97 nRF52: Added NRF.HID event for two-way BLE HID communications
nRF5x: Remove multiple writes per connection interval (more trouble than the speed improvement is worth)
2018-09-27 10:58:55 +01:00
Gordon Williams
6b147b666f Remove Graphics.scroll/drawCircle/fillCircle on devices with low flash to allow builds to fit again
Remove BluetoothRemoteGATTCharacteristic.writeValue on NRF51 (accidental inclusion - it's not required)
2018-09-20 15:37:29 +01:00
Gordon Williams
5d76771c11 Massive bluetooth name refactoring, potentially to help with #1445 2018-09-03 17:07:23 +01:00
Gordon Williams
4ba538b1de nRF5x: Allow NRF.setScan and NRF.findDevices to take the same search filters NRF.requestDevice does (fix #1496) 2018-09-03 14:51:11 +01:00
Gordon Williams
78f1bf19bf Merge branch 'master' into NRF_SDK_15 2018-08-09 14:36:01 +01:00
Gordon Williams
acaf3f28b2 nRF52: NRF.requestDevice now resolves as soon as a device is found. Faster and better in congested areas 2018-08-07 11:24:52 +01:00
Gordon Williams
d40541d263 docs 2018-07-31 08:22:28 +01:00
Gordon Williams
edcf1d0b83 improve advertising docs 2018-07-26 15:42:28 +01:00
Gordon Williams
31fa46131e Merge branch 'master' of github.com:espruino/Espruino 2018-07-25 09:06:23 +01:00
Gordon Williams
69744b68e4 BLE docs 2018-07-25 08:57:37 +01:00
Gordon Williams
20950ac9ac add default value to docs 2018-07-19 17:37:40 +01:00
Gordon Williams
66d3905968 minor refactor to make connection types more obvious 2018-07-12 17:34:21 +01:00
Gordon Williams
129423622e docs 2018-07-12 17:28:11 +01:00
Gordon Williams
7f606ce2f6 nRF52: Add Dynamic Interval Adjustment - default to 2x connection speed, but idle at 10x slower if not used for 1 minute
nRF5x: Add NRF.setConnectionInterval() to allow connection speed to be set manually
2018-07-12 17:13:03 +01:00
Gordon Williams
3583ef52cd Add options argument to NRF.connect and BluetoothDevice.gatt.connect, allowing a connection interval to be specified 2018-07-12 10:51:29 +01:00
Gordon Williams
9f785df686 first attempt at SDK15 port. Not working yet, but compiling at least 2018-06-12 17:25:21 +01:00
Gordon Williams
640245ff41 tweaks to fix build on linux & micro:bit 2018-05-18 13:50:26 +01:00
Gordon Williams
1572c2dd90 nRF52: Added NRF.setAddress to allow the MAC address to be changed 2018-05-16 08:49:13 +01:00
Gordon Williams
5223d4e936 Merge branch 'master' into ESP32-v3.0 2018-05-14 11:49:20 +01:00