53 Commits

Author SHA1 Message Date
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
6ba7f5dc81 nRF52: Disable auto-whitelisting by default, add with (fix #1187) 2017-06-26 16:42:20 +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
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
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
Uri Shaked
1cc1c1243c nRF5x: Get RSSI of connection when in Central mode 2017-04-24 13:39:42 +03: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
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
5b6e806483 nRF52: Allow arbitrary NFC data to be specified (fix #1021) 2017-01-25 15:31:40 +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
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
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
5b5e4dcea1 Increased findDevices timeout to 2 seconds
Allowed 16 bit UUIDs to be specified as simply "ABCD" (no "0x")
            Improved BLE error messages (especially from Promises)
2016-11-11 12:40:29 +00:00
Gordon Williams
4f9e437a70 Making requestDevice return a proper BluetoothDevice 2016-11-08 11:18:36 +00:00
Gordon Williams
aea24f2392 start of requestdevice implementation 2016-11-07 18:40:15 +00:00
Gordon Williams
ce866a86cb nRF5x: Added NRF.findDevices as a helper function to easily list BT devices in range 2016-11-07 17:35:07 +00:00
Gordon Williams
10a518113f Adding automatic NFC start after save, and let Puck.js advertise on NFC 'out of the box' 2016-10-31 10:37:51 +00:00
Gordon Williams
02588457fe start of notifications - still need to find cccd handle to be able to write it and start them. The rest should be almost done 2016-10-28 18:19:59 +01:00
Gordon Williams
566e0c400f add ability to read a characteristic 2016-10-25 18:13:12 +01:00
Gordon Williams
f2e09d8a67 nRF5x: Change central mode API to mirror Web Bluetooth 2016-10-25 16:40:12 +01:00
Gordon Williams
f8b74ac9c1 nRF5x: Add ability to get RSSI of current connection (fix #928) 2016-10-14 16:11:55 +01:00
Gordon Williams
026ee93402 tidying HID, allowing repeated sends easily 2016-10-14 12:00:12 +01:00
Gordon Williams
99c1ec4900 nRF52: BLE HID support and switchable Nordic UART 2016-10-14 10:20:00 +01:00
Gordon Williams
e756fdf25b Big BLE refactor - the single file was getting way out of hand, so split out most nordic-specific into bluetooth.c in the nrf5x directory 2016-10-12 12:16:20 +01:00
Dimitri del Marmol
515c5d5a07 Get help on characteristic handle issue 2016-10-03 13:28:38 +02:00
Gordon Williams
a1e4a3f027 give capsense a timeout, add it to Puck object, and fix Ctrl-C behaviour on nRF52 2016-08-26 12:17:02 +01:00
Gordon Williams
4faca0235e Merge branch 'master' into NRF_capacitance 2016-08-26 11:17:38 +01:00
Gordon Williams
38df0e3437 NRF5x: remove setName and add functionality to setAdvertising, along with advertising interval 2016-07-27 13:23:31 +01:00
Gordon Williams
e79c9130e4 capacitance sense 2016-07-27 11:13:03 +01:00
Gordon Williams
b726ab7997 Added nRF52 NFC support when compiled with NFC=1 - doesn't quite seem to work yet though, despite being same code from NFC example and not producing any errors 2016-07-20 15:27:51 +01:00
Gordon Williams
2b32755e6f use RTC for sleep - should allow clock shutdown 2016-07-19 17:23:10 +01:00
Gordon Williams
6e552d28ea BLE service/characteristic discovery and writing 2016-05-27 12:59:02 +01:00
Gordon Williams
a0e2ba5321 start of the ability to write characteristics 2016-05-27 12:35:50 +01:00
Gordon Williams
c35250f96a start of service discovery 2016-05-26 18:00:40 +01:00
Gordon Williams
93139172d6 Allow BLE name to be set - start of BLE connect, based(ish) on noble 2016-05-26 16:57:06 +01:00
Gordon Williams (u36)
79d26a9f57 Added ability to add BLE characteristics 2016-04-06 16:40:13 +01:00
Gordon Williams (u36)
2d7ba28a1a add copyright note 2016-04-01 16:54:16 +01:00
Gordon Williams
610accf2c1 Added NRF.setTxPower, and ensure that scanning stops after a reset! 2016-03-11 16:09:38 +00:00
Gordon Williams (u36)
f47370b5be tidying up warnings, and add ability to scan for nearby devices 2016-02-04 14:18:45 +00:00
Gordon Williams
81738d59d7 added ability to change advertising data from JS 2015-11-30 17:56:47 +00:00
Gordon Williams (u36)
30c0941d19 add bluetooth console, try and remove dependence on board 2015-10-26 14:23:13 +00:00
Gordon Williams
38266b4889 allowed Serial pins and baud to be specified, fixed BLE send 2015-10-21 16:36:02 +01:00
Michael Dietz
fd6495fe65 microbit working. commands cna be sent over ble now 2015-09-23 17:35:02 +02:00
Michael Dietz
d99807f97c ble interface now workig. use the Bluetooth class and call enable_com to
start programming espruino in hjavascript from ble
2015-09-23 16:23:19 +02:00
Michael Dietz
d45d7fbad2 added flash functions 2015-09-23 10:07:29 +02:00
mjdietzx
9015cffdf4 added some documentation
nrf51 & nrf52 both working. code needs cleaning up. flash problem with
nrf51 (overflowed b/c of softdevice needs fixing).
2015-09-22 13:55:30 +02:00