808 Commits

Author SHA1 Message Date
Gordon Williams
7835cc59f8 update docs, and finally use a proper markdown parser! 2017-02-16 17:26:59 +13:00
Gordon Williams
e74b520780 oops - fix build errors for other platforms again 2017-02-16 17:26:57 +13:00
Gordon Williams
7614f73f05 set 'this' of bound functions like we do for other functions 2017-02-16 17:26:55 +13:00
Gordon Williams
b0bbe7b8ff Making requestDevice return a proper BluetoothDevice 2017-02-16 17:26:54 +13:00
Gordon Williams
a360caabb9 nRF5x: Added Web Bluetooth style requestDevice function 2017-02-16 17:26:53 +13:00
Gordon Williams
d5121b5d32 start of requestdevice implementation 2017-02-16 17:26:51 +13:00
Gordon Williams
24591ac663 refactor 2017-02-16 17:26:50 +13:00
Gordon Williams
09d810e2d4 nRF5x: Added NRF.findDevices as a helper function to easily list BT devices in range 2017-02-16 17:26:50 +13:00
Gordon Williams
64cc612c23 Started using jsvObjectRemoveChild to remove some internal object properties that are undefined (frees some variables) 2017-02-16 17:26:49 +13:00
Gordon Williams
b7d0592792 oops - fix nRF51 compile 2017-02-16 17:26:48 +13:00
Gordon Williams
11ecde03c7 oops - fix documentation issue 2017-02-16 17:26:46 +13:00
Gordon Williams
a9d055bc04 Tweaking puck auto-test to cope with brand new batteries 2017-02-16 17:26:44 +13:00
Gordon Williams
461278de6c misc tweaks 2017-02-16 17:26:43 +13:00
Gordon Williams
23954e6318 Adding automatic NFC start after save, and let Puck.js advertise on NFC 'out of the box' 2017-02-16 17:26:42 +13:00
Gordon Williams
3425a7811f start of notifications - still need to find cccd handle to be able to write it and start them. The rest should be almost done 2017-02-16 17:26:40 +13:00
Gordon Williams
96fdf45142 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 2017-02-16 17:25:10 +13:00
Gordon Williams
ea848590d2 tweaks for BLE connection 2017-02-16 17:25:10 +13:00
Gordon Williams
9bf6e010f3 add ability to read a characteristic 2017-02-16 17:25:09 +13:00
Gordon Williams
f61f33c79f Central mode getService/Characteristic - can now control another puck via Nordic UART \o/ (fix #958) 2017-02-16 17:25:09 +13:00
Gordon Williams
79da3a20df nRF5x: Change central mode API to mirror Web Bluetooth 2017-02-16 17:25:08 +13:00
Gordon Williams
aebb0d6de2 oops - re-add central capabilitties after refactor 2017-02-16 17:25:08 +13:00
Gordon Williams
9602014576 extracting general purpose bluetooth code 2017-02-16 17:25:07 +13:00
Gordon Williams
6d5066dec8 update test for puck 2017-02-16 17:25:06 +13:00
Gordon Williams
a428a686e1 nRF5x: Add Puck.js self-test code, fix issue where analogRead reset pin state 2017-02-16 17:25:06 +13:00
Gordon Williams
7709199114 Fix potential issues with Telnet server and return values from netCreateSocket/netAccept on some platforms (fix #931) 2017-02-16 17:25:05 +13:00
Gordon Williams
720dc0fd4c Fix corrupted file reads (turns out it just read the same stuff over and over) - Fix #955 2017-02-16 17:25:04 +13:00
Gordon Williams
2630001ad9 oops. fix NFC build 2017-02-16 17:25:02 +13:00
Gordon Williams
e0b65e33d5 attempt at improving HTML documentation quality 2017-02-16 17:23:54 +13:00
Gordon Williams
2398f91986 nRF5x: Add ability to get RSSI of current connection (fix #928) 2017-02-16 17:23:50 +13:00
Gordon Williams
a21548aab8 oops - fix nRF51 build 2017-02-16 17:23:49 +13:00
Gordon Williams
6ce83872fa readFile (and File.read) now uses Flat Strings to allow more memory efficient reads (fix #932) 2017-02-16 17:23:49 +13:00
Gordon Williams
11e7e51509 modify setServices to allow BLE HID to supply report descriptors 2017-02-16 17:23:47 +13:00
Gordon Williams
6011c4f495 tidying HID, allowing repeated sends easily 2017-02-16 17:23:47 +13:00
Gordon Williams
94feb82dc5 nRF52: BLE HID support and switchable Nordic UART 2017-02-16 17:23:46 +13:00
Gordon Williams
eaae791624 squishing warnings 2017-02-16 17:23:42 +13:00
Gordon Williams
69c0684fae 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 2017-02-16 17:23:40 +13:00
Gordon Williams
0b1e9a05b1 remove bootloader related cruft. Wouldn't work anyway now SDK is v12 2017-02-16 17:23:38 +13:00
Rhys.Williams
d7d36fd794 jshreset, re-organise hardware start up 2017-02-12 20:21:37 +13:00
Rhys.Williams
1db1205aaa get wifi startup working - default on fresh flash is AP mode 2017-01-12 18:35:35 +13:00
Rhys.Williams
bb3d7e7317 wifi save - work as per ESP8266 2017-01-12 17:34:55 +13:00
Rhys.Williams
a8208d17ac Remove ESP_LOG statements - change to jsWarn and jsError 2017-01-12 16:51:34 +13:00
Rhys.Williams
471e86ffcb remove arduino libs dependancy (spi commented out) 2017-01-10 21:33:05 +13:00
Rhys.Williams
947f552529 remove arduino libs dependancy (spi commented out) 2017-01-10 21:14:29 +13:00
Rhys.Williams
fade63d7a1 Fix regression where HTTPS without cert/ca or key failed 2016-12-21 18:33:21 +13:00
Rhys.Williams
08dddc3eb6 more work on spi code, add E.getTemperature(); 2016-12-18 17:22:02 +13:00
Rhys.Williams
c17b486042 Updates for ESP-idf SDK 1.0 2016-12-05 16:44:04 +13:00
Rhys.Williams
9c99e9ff3a take out telnet as not yet working, port opens but no chars sent or recieved 2016-11-24 15:03:20 +13:00
Rhys.Williams
49a5a03d5e Remove unused wifi flash references 2016-11-24 12:22:36 +13:00
Rhys.Williams
58eee3d07d Allow single byte read from flash so that save() works
Implement `wifi.save()` and `wifi.restore()` using inbuilt API (rather than save to flash like ESP8266)
2016-11-24 12:09:34 +13:00
kolban
ad6dd5fbb0 Additional implementation of getDetails() and getStatus() 2016-11-01 19:15:42 -05:00