krheinwald
Member since Dec 2017 • Last active Dec 2017Most recent activity
-
- 7 comments
- 2,230 views
-
Looking at the docs, I was wondering, whether it is necessary to advertise HID as well?
The example I followed only sets it as a service:
NRF.setServices(undefined, { hid : kb.report });
while the API docs say 'Note: Just creating a service doesn't mean that the service will be advertised. It will only be available after a device connects.'
-
Thanks Gordon, that would be worth a try.
I suspected it had something to do with HID over BLE and sleep and wake as I see my (classic) BT keyboard auto-connecting without a problem. Wondering what the difference is. Maybe a special type of service or advertismsnt is requireed for the PC to reconenct automatically?
-
I build a simple keyboard emulator for a scoring system using Puck.js. 5 Pucks are configured to send a different key code when clicked by the judge holding it, another one when double clicked.
I am now trying to put the units to sleep after 15mins and wake them up and reconnect them again on the next key click - similar to my Logitech BT keyboard
Putting to sleep seems to works, but I can't get the automatically reconnect working - I always have to go through the BT menu of the laptop.
Any suggetsions are appreciated.
Klaus
-
E.setBootCode("") did it, thanks!
You might want to update the documentation.
-
-
Had the IDE 'Save on Upload' some code on 1.94.
Tried
- Reset Puck.js with the button held down - the Green LED lights.
- Keep the button pressed for ~3 seconds until all 3 LEDs are lit
- Released the button
- The Green LED flashes 5 times
- Connected to IDE
- Typed save()
- Typed save()
- Typed E.setBootCode()
to clear the old code. After reset(), old code is still present and executed, visible by console.log() messages from the old code. What am I missing?
Klaus?
- Reset Puck.js with the button held down - the Green LED lights.
Thanks for the clarification and confirmation that the HID service is advertised correctly when following the example.
Will keep poking around...