200 Commits

Author SHA1 Message Date
Gordon Williams
fda479779f Fix dumping of an ArrayBuffer containing data (new ArrayBuffer([1,2,3]) isn't valid)
Fix setAdvertising regression where name would be lost after save() (fix #1193)
2017-07-07 10:12:54 +01:00
Gordon Williams
a4268f8473 fix regression in NRF.setServices caused by recent fix for loading them at boot time 2017-07-06 15:31:29 +01:00
Gordon Williams
e82b1dc3d0 remove ble_advertising library that could have been confusing matters 2017-06-26 18:42:04 +01:00
Gordon Williams
6ba7f5dc81 nRF52: Disable auto-whitelisting by default, add with (fix #1187) 2017-06-26 16:42:20 +01:00
Gordon Williams
bb6b318372 fix regression with setAdvertising(undefined) 2017-06-26 15:32:35 +01:00
Gordon Williams
ac2c253d6f nRF52: Added BluetoothRemoteGATTServer.getSecurityStatus to check the status of the link 2017-06-26 15:12:45 +01:00
Gordon Williams
6e2e0b5139 nRF5x: NRF.findDevices will now throw an exception if no callback is supplied 2017-06-26 14:45:29 +01:00
Gordon Williams
6b024daabd nRF5x: Add NRF.getAdvertisingData
nRF5x: Allow array of objects in NRF.setAdvertising (fix #1188)
            Fix internal vcbprintf JSON dumping
2017-06-26 13:00:27 +01:00
Gordon Williams
3afb55e739 add getAdvertisingData 2017-06-23 16:57:36 +01:00
Gordon Williams
7cb2433d94 nRF52: Re-initialise services and HID after a save() (fix #1185) 2017-06-19 18:21:54 +01:00
Gordon Williams
5e16e890b6 BLE docs 2017-06-16 17:19:01 +01:00
Gordon Williams
a45aca0741 nRF5x: Fix when a 128 bit service shares the same 16 bit UUID 2017-06-12 16:15:30 +01:00
Gordon Williams
9c179b2421 tweaks, and improve wake and sleep docs 2017-06-12 14:54:12 +01:00
Gordon Williams
2c96ee4186 remove misc compile warnings 2017-06-09 11:54:10 +01:00
Gordon Williams
ac34dbd979 update docs. It seems the previous explanbation was confusing 2017-05-08 16:32:26 +01:00
Gordon Williams
fd3dffc79f Puck.js: Add BluetoothRemoteGATTServer.startBonding to allow bonding to be initiated when Puck.js is a central 2017-05-08 15:03:47 +01:00
Gordon Williams
17cec0e430 Fix locking error and assert fail for setAdvertising with array on non-release build 2017-04-25 12:35:55 +01:00
Gordon Williams
b99f33fb75 Ensure that specifying too many advertising UUIDs causes an exception, not a reboot (#1150) 2017-04-25 10:12:39 +01:00
Uri Shaked
1cc1c1243c nRF5x: Get RSSI of connection when in Central mode 2017-04-24 13:39:42 +03:00
Gordon Williams
c3aeae45d7 Merge pull request #1128 from urish/set-advertising-connectable
nRF5x: add "connectable" option to setAdvertising()
2017-04-03 15:58:43 +01:00
Uri Shaked
de06eb15b6 nRF5x: Store "connectable" flag in bleStatus
This saves some precious RAM :)
2017-04-03 17:56:52 +03:00
Uri Shaked
ed4961aee4 nRF5x: add "connectable" option to setAdvertising 2017-04-03 03:19:50 +03:00
Uri Shaked
5f92e0ee18 nRF5x: add description field for BLE characteristics 2017-04-01 18:05:43 +03:00
Gordon Williams
d1e384e36d Merge pull request #1121 from urish/request-device-fix
nRF5x: support integer UUIDs in requestDevice
2017-03-27 09:58:18 +01:00
Uri Shaked
d4581b5040 nRF5x: support integer UUIDs in requestDevice 2017-03-25 14:30:20 +03:00
Uri Shaked
6fd6209943 nRF5x: not all services returned in NRF.findDevices 2017-03-25 04:05:08 +03:00
Gordon Williams
bd39d2cca1 nRF5x: Allow services to be advertised (fix #996) 2017-03-15 16:12:28 +00:00
Gordon Williams
0d49e23e98 nRF52: char.readValue now returns DataView to be more Web Bluetooth compliant (fix #1091) 2017-02-28 12:25:43 +00:00
Gordon Williams
15ffa96f1b nRF5x: Report back reason codes for BLE disconnect 2017-02-28 10:34:21 +00:00
Gordon Williams
761dbafbae nRF52: Added BluetoothDevice.gattserverdisconnected event, also tweak connection params for a faster connection 2017-02-27 17:46:05 +00:00
Gordon Williams
745919ad6f Add BluetoothRemoteGATTCharacteristic.startNotifications (fix #959) 2017-02-27 16:09:05 +00:00
Christian Winkgen
62800c72ec remove m_characteristic_desc_discover, use bleTaskInfo instead 2017-02-20 22:59:03 +01:00
Christian Winkgen
d4092016d6 uncomment and implement start/stopNotifications 2017-02-19 23:00:34 +01:00
Christian Winkgen
d8146800b3 fix typo in documentation 2017-02-19 22:59:37 +01:00
Christian Winkgen
9ac9d8f795 add bleSwitchTask to switch from discovery to notification without returning anything yet 2017-02-19 22:58:19 +01:00
Christian Winkgen
dec088c77e add new ble task 2017-02-19 22:53:36 +01:00
Gordon Williams
161fb4fd79 Merge branch 'master' of github.com:espruino/Espruino 2017-02-09 10:37:54 +00:00
Gordon Williams
6a2eb0d90f attempt to fix #1051 2017-02-06 10:26:57 +00:00
Gordon Williams
060c17ea25 Fix docs 2017-02-03 18:49:13 +00:00
Gordon Williams
c2015d1a67 nRF5x: Allow multiple advertising packets to be set at once with NRF.setAdvertising 2017-01-25 16:12:30 +00:00
Gordon Williams
5b6e806483 nRF52: Allow arbitrary NFC data to be specified (fix #1021) 2017-01-25 15:31:40 +00:00
Gordon Williams
08beff1f10 fix microbit warnings 2017-01-25 14:37:33 +00:00
Gordon Williams
f2615a74e1 nRF5x: Add NRF.restart() to force the restart of the Bluetooth Softdevice if required
nRF5x: Add E.setLowPowerConnection(bool) to allow continuous connections to Puck.js (fix #995)
2017-01-10 10:35:08 +00:00
Gordon Williams
bb52ec9d1e Fix bug that caused Bluetooth/TV/USB objects to be added in devices that didn't support them (fix #832) 2017-01-06 09:36:59 +00:00
Gordon Williams
b18acf3757 nRF5x: Add NRF.getAddress() - fix #1001 2016-12-21 14:27:38 +00:00
Gordon Williams
633b94cd08 nRF52: Making NRF.getPrimaryService/etc more robust 2016-12-21 12:09:30 +00:00
Gordon Williams
9f24b52e20 docs 2016-12-15 17:14:29 +00:00
Gordon Williams
cbed04c82d nRF5x: 'connect' event now contains address of device that has connected, and fix docs
nRF5x: Add a 'NRF.disconnect' function to disconnect a client that has connected to Puck.js
2016-12-15 15:31:38 +00:00
Gordon Williams
f3bd793415 nRF5x: Remember advertising information even after softdevice reboot (fix #997) 2016-12-15 13:19:34 +00:00
Gordon Williams
19abd51fe4 nRF5x: Ensure 'NRF.sleep' works even when connected 2016-12-15 11:28:59 +00:00