195 Commits

Author SHA1 Message Date
Gordon Williams
5038921f6d docs 2016-12-06 16:32:32 +00:00
Gordon Williams
c969f3c52c nRF5x: Make sure that updateServices(notify) on a non-notifyable service will just error, rather than reset (fix #973) 2016-11-14 16:40:53 +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
7c7e3ac32d update docs, and finally use a proper markdown parser! 2016-11-09 14:19:40 +00:00
Gordon Williams
16a3a7a0e9 oops - fix build errors for other platforms again 2016-11-08 14:50:49 +00:00
Gordon Williams
163faa41a5 set 'this' of bound functions like we do for other functions 2016-11-08 12:31:21 +00:00
Gordon Williams
4f9e437a70 Making requestDevice return a proper BluetoothDevice 2016-11-08 11:18:36 +00:00
Gordon Williams
a81d069daf nRF5x: Added Web Bluetooth style requestDevice function 2016-11-08 10:12:22 +00:00
Gordon Williams
aea24f2392 start of requestdevice implementation 2016-11-07 18:40:15 +00:00
Gordon Williams
2bed2af34f refactor 2016-11-07 17:39:38 +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
a1c0d1c452 oops - fix nRF51 compile 2016-11-07 14:54:20 +00:00
Gordon Williams
e7061ed262 misc tweaks 2016-10-31 12:02:20 +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
0ebbfd18ab Change address string type so we can specify puclic or randon addresses in the string. Tidy write_params to cope with potential extra args in future 2016-10-27 10:43:56 +01:00
Gordon Williams
fa5307fa28 tweaks for BLE connection 2016-10-26 11:41:21 +01:00
Gordon Williams
566e0c400f add ability to read a characteristic 2016-10-25 18:13:12 +01:00
Gordon Williams
d833bd87ff Central mode getService/Characteristic - can now control another puck via Nordic UART \o/ (fix #958) 2016-10-25 18:00:21 +01:00
Gordon Williams
f2e09d8a67 nRF5x: Change central mode API to mirror Web Bluetooth 2016-10-25 16:40:12 +01:00
Gordon Williams
9c30ff729a oops - re-add central capabilitties after refactor 2016-10-25 11:45:34 +01:00
Gordon Williams
5af5fcea35 extracting general purpose bluetooth code 2016-10-25 11:35:50 +01:00
Gordon Williams
12d908a9b3 oops. fix NFC build 2016-10-20 17:24:06 +01:00
Gordon Williams
f9fdd62f88 attempt at improving HTML documentation quality 2016-10-18 09:49:31 +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
c47f3e1eb6 oops - fix nRF51 build 2016-10-14 16:06:00 +01:00
Gordon Williams
f9135767b3 modify setServices to allow BLE HID to supply report descriptors 2016-10-14 13:05:21 +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
Gordon Williams
c34f7075f9 remove bootloader related cruft. Wouldn't work anyway now SDK is v12 2016-10-12 10:33:10 +01:00
Gordon Williams
0b0a032ff8 Merge branch 'master' into SDK12 2016-10-07 13:21:15 +01:00
Gordon Williams
6212f76fda nRF5x: setServices can now uninitialise SD in order to remove added services 2016-10-07 13:03:36 +01:00
Gordon Williams
cb7c779d23 oops - fix updateServices regression with notifications 2016-10-06 17:43:08 +01:00
Gordon Williams
df40cdd4c3 nRF5x: allow setServices to be called multiple times (partial #936) 2016-10-06 13:19:38 +01:00
Gordon Williams
a54fdf6bf8 Merge branch 'master' into SDK12 2016-10-04 14:15:58 +01:00
Dimitri del Marmol
56b8074e9f Add indication support for GATT Characteristics 2016-10-04 14:38:24 +02:00
Dimitri del Marmol
65d52b9c22 Fix documentation typos 2016-10-04 13:26:34 +02:00
Dimitri del Marmol
3488be45c4 Enable simple READs using NRF.updateServices 2016-10-04 13:20:52 +02:00
Dimitri del Marmol
df56324cce Implement updateServices for notifications 2016-10-03 16:43:19 +02:00
Dimitri del Marmol
515c5d5a07 Get help on characteristic handle issue 2016-10-03 13:28:38 +02:00
Gordon Williams
5e17c037d9 fix NRF.sleep occasional crash, and advertising that stopped after a while 2016-09-23 15:39:28 +01:00
Gordon Williams
b27664f18a compiling bootloader now, and finally compiling puck.js after NFC functions renamed 2016-09-16 17:00:59 +01:00
Gordon Williams
35d5093267 changed for semi-working nrf52 2016-09-16 13:19:57 +01:00
Gordon Williams
79bb963899 fix warnings 2016-09-16 11:56:14 +01:00
Gordon Williams
c8608c16e9 add but comment out DC-DC enable, and add the red LED blink on startup as it's a good way to signal that the firmware is running 2016-09-15 11:33:49 +01:00
Gordon Williams
25bab65652 fix #922 2016-09-13 10:26:45 +01:00
Gordon Williams
0cdbf28a36 Update bootloader. Need to leave much more space now for some reason (my GCC version?). Now allow a long (3 sec) press to drop through to Espruino but without loading saved code 2016-09-09 15:15:39 +01:00
Gordon Williams
50f4f82d9b Fixing support for adding services with custom UUIDs 2016-09-09 13:27:47 +01:00
Gordon Williams
b7909462fb set option to notify 2016-09-08 16:31:16 +01:00