I would like to develop some app to be able to use nRF51 dongle on PC. Is there any good example codes to start with? My plan is to use pc-ble-driver-js and Electron and found examples "pc-nrf-connect-boilerplate" and "pc-nrfconnect-rssi" from Nordic Github. But they don't use pc-ble-driver-js and couldn't figure out how to combine them.. I don't mind launching app from nRF Connect for now but my goal is to develop a separate SPA. Is there such example code from Nordic? I guess nRF Connect itself is made this way perhaps but no source codes are found so far. Any information is appreciated. Thank you.
Is'nt pc-nrf-connect-core what your are looking for?
nRF Connect builds on top of other sub components that live in their own GitHub repositories:
Thank you for the link.
I tried to install nrf Connect by "npm install" but it gave me an error "ERR! Tried to download(404): https://github.com/tessel/node-usb/releases/download/1.3.1/usb_bindings-v1.3.1-electron-v1.8-win32-ia32.tar.gz" and couldn't install it. Then I found just nRF Connect BLE (https://github.com/NordicSemiconductor/pc-nrfconnect-ble) which seems to be a bit simpler than whole set of nRF Connect. Then installed by "npm install" and launched it from nRFConnect then it pops up error message "Cannot read property 'getDeviceSetup' of undefined" and didn't start.
I just tried the release version 2.1.0 and it successfully launched from local. So I think I will go through this. Do you think this is the best example to start or do you know anything a bit simpler? RSSI viewer and boilerplate examples don't use pc-ble-driver-js, which is not ideal for me.
I am afraid that we do not have any other examples that use pc-ble-driver-js and electron.
Best regards Bjørn