Commit Graph

12 Commits

Author SHA1 Message Date
Nikolas Sepos
e75f949904
Port current codebase to S140 softdevice 2020-03-06 14:24:50 +01:00
Ayke van Laethem
f86fd36240
softdevice: make code more flexible for other SoftDevices
This is required for adding S140 support. It relies on the following
TinyGo PR:
https://github.com/tinygo-org/tinygo/pull/942
2020-03-06 13:46:42 +01:00
Ayke van Laethem
00e2592aff linux: add support for services
Unfortunately, I couldn't get characteristics to work.
2019-11-16 19:11:59 +00:00
Ayke van Laethem
23c2fa38e4
softdevice: fix some comments 2019-11-16 19:01:22 +01:00
Ayke van Laethem
6ded078c91
softdevice: fix event handler 2019-11-16 19:00:18 +01:00
Ayke van Laethem
ca2f0920f9
Make heartrate example more interesting
Display heartrate ticks on the console (that can be adjusted) to make
this example more interesting.
2019-11-16 15:09:49 +01:00
Ayke van Laethem
e453c4d3f9
Add Linux support
Very much experimental, no BLE service support yet and BLE LocalName in
advertisement packet doesn't seem to work. So rather useless at the
moment.
2019-11-09 17:55:19 +01:00
Ayke van Laethem
6e4cf6f8e0
gatts: implement write event for characteristics 2019-11-09 13:55:34 +01:00
Ayke van Laethem
1d44126ac9
gap: implement basic event handling: connect/disconnect 2019-11-09 13:50:00 +01:00
Ayke van Laethem
62131e4c55
Allow setting permission flags on characteristics 2019-11-09 13:02:58 +01:00
Ayke van Laethem
6553fe682d
Split characteristic in config and handle
This allows setting up a characteristic with many properties but avoids
needing to keep the memory of that around (in Go) when the
characteristic is needed at a later time. Instead, only a handle
(currently 16 bits) is kept around to reference to the characteristic.
2019-11-09 12:26:06 +01:00
Ayke van Laethem
0cabe28570
Initial commit 2019-11-08 10:58:02 +01:00