deadprogram
79285321af
all: unify UUID16 creation for all platforms
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-09-05 15:58:01 +02:00
deadprogram
0b701c55ca
macos: use the same UUID format as expected by other standard
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-09-05 15:58:01 +02:00
deadprogram
cc5adf3789
macos: update to point to tinygo-org fork
2022-09-05 15:58:01 +02:00
Bart Meuris
948ea8c7ee
Improve UUID ( #107 )
...
Improvements to UUID:
* uuid now works with upper and lowercase
* sped up UUID.String() using stringbuilder, added benchmark
* UUID.String(): grow builder to prevent allocs
* make test in cicd happy
2022-08-25 14:22:52 +02:00
Ron Evans
25349d381e
build: add Github Action based CI build ( #108 )
...
* build: add Github Action based CI build
2022-07-12 17:16:21 +02:00
deadprogram
e7671110ad
linux: update to latest go-bluetooth package
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-05-22 14:39:13 +02:00
Jagoba Gascón
9b9512fbc9
advertising: add manufacturer data field to advertisement payload
2022-05-22 14:36:27 +02:00
Yurii Soldak
20f0ce6119
gap: stop advertising
2022-05-22 08:59:22 +02:00
deadprogram
8dc1e155a0
all: prepare for release 0.5.0
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-04-29 13:47:49 +02:00
deadprogram
02fb2457d9
docs: update license year
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-04-29 13:47:18 +02:00
deadprogram
25d288fd10
all: update to drivers 0.20.0
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-04-29 11:53:23 +02:00
deadprogram
8cab553c59
all: update modules to use dev branch with TinyGo 0.23-pre compatible drivers
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-04-21 18:13:49 +02:00
Nicholas Page
7dee8d4d82
Fix ParseMAC bug
2022-04-19 13:44:36 +02:00
Ayke van Laethem
96a2be1571
Add //go:build lines for Go 1.18
...
This will be needed eventually, so add them now already.
2022-04-19 11:00:08 +02:00
Ayke van Laethem
4c0df2892d
nrf: fix CGo errors after TinyGo update
...
For details, see: https://github.com/tinygo-org/tinygo/pull/2774
2022-04-13 18:59:12 +02:00
deadprogram
e75811786c
release: update for v0.4.0
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-11-18 18:45:24 +01:00
David Barroso
bd75a42694
gattc/linux: DiscoverServices times out in 10s
2021-11-05 19:24:02 +01:00
Yurii Soldak
7f3b96cff9
adapter: address
2021-11-05 19:16:52 +01:00
Yurii Soldak
501b0aeecc
nrf: update s140v7 SoftDevice version to latest, 7.3.0
2021-11-05 19:11:32 +01:00
deadprogram
899467bab3
modules: update muka/go-bluetooth to latest version
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-09-03 15:07:01 +02:00
James Lawrence
d985dcb55c
fixes bluez 0.55 service registration.
...
muka/go-bluetooth does some magic so you can use short UUIDs and it'll auto
expand them to the full 128 bit uuid. setting these flags disables that behavior.
related issues:
- allows updating muka library to resolve https://github.com/tinygo-org/bluetooth/issues/35
- fixes the regression the upgrade caused https://github.com/tinygo-org/bluetooth/issues/46
- commit causing the regression in upstream 1c4c1c8613
2021-09-03 15:05:44 +02:00
deadprogram
ab40fc77fe
examples: add scanner for Adafruit Clue
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-07-21 22:18:58 +02:00
deadprogram
d472af8a8e
modules: add tinyterm package for clue example
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-07-21 22:18:58 +02:00
deadprogram
3cbf47cc61
macos: update xcode in use to 10.3.0
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-07-21 00:36:28 +02:00
Erik Price
cf63949412
darwin: make Adapter.Connect thread-safe
...
This change allows multiple concurrent goroutines to call
`Adapter.Connect` without racing.
Fixes #57
2021-07-21 00:09:35 +02:00
Ayke van Laethem
bb8767730c
nrf: add support for S113 SoftDevice
...
This SoftDevice is used by default on the BBC micro:bit v2 so it's a
good idea to add support here.
Unfortunately this SoftDevice does not support scanning and connecting
to other devices. This means that I unfortunately had to duplicate the
event handler. I managed to refactor most other code to avoid
duplicating much more. (This is when macros would have been useful in
Go...)
2021-04-15 15:37:36 +02:00
Ayke van Laethem
340f6985ca
Use TinyGo __app_ram_base
...
This makes sure the SoftDevice start address is configured in only one
place, and thus avoid potential issues when it is changed. It also will
allow setting a different SoftDevice RAM size with a linker flag
starting with LLVM 11 (when expressions are allowed in the MEMORY part
of a linker script).
2021-04-15 15:37:36 +02:00
Ayke van Laethem
10dcd116e8
nrf51: fix assertHandler function signature
...
Not using the right signature led to a compiler crash.
The compiler should probably be fixed in this case (to report an error
instead), but this at least fixes the issue.
2021-04-15 15:37:36 +02:00
deadprogram
28f9f4e69e
release: prepare for v0.3.0
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-03-06 14:05:08 +01:00
deadprogram
172569b0a1
docs: few details on newly supported boards
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-03-05 00:22:43 +01:00
deadprogram
fa5736e183
docs: update license for 2021
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-03-05 00:22:11 +01:00
deadprogram
46364419f9
modules: update to latest TinyGo drivers package
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-02-14 13:21:12 +01:00
deadprogram
27cc35a60b
examples: use standard service and characteristic UUIDs
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-02-02 00:17:38 +01:00
deadprogram
549cb4a3f7
gen: generate standard service and characteristic UUIDs from Nordic Semiconductor bluetooth numbers database
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-02-02 00:17:38 +01:00
Ron Evans
b4b125480a
darwin: properly handle 16-bit UUIDs for service and characteristics in the unique format used by macOS
...
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2021-02-02 00:17:14 +01:00
deadprogram
a355f254da
linux: downgrade to older version of go-bluetooth that appears to work correctly with BlueZ 5.50
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2021-01-18 18:40:29 +01:00
Michael Mogenson
855d3c4b78
Update heart rate monitor data format
...
Print heart rate bpm from 2nd byte of payload.
2020-12-10 10:54:40 -05:00
Michael Mogenson
9dde7219a6
Fix up heart rate example
...
Fix up the heart rate example so that it conforms to the Heart Rate Service specification: https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=239866
This will let this example work with external clients like exercise equipment and fitness apps.
Changes:
- Advertise the HR service UUID instead of the HRM characteristic UUID.
- Change HRM characteristic to notify only.
- HRM payload needs to be two bytes:
- 1st byte is flags specifying data type and sensor capabilities: this can be set to zero.
- 2nd byte is HR measurement in bpm.
Tested on Raspberry Pi with nRF Connect app and exercise bike. Peripheral shows up as HR monitor and data is interpreted correctly.
2020-12-10 10:50:00 -05:00
deadprogram
41f7317638
release: prepare for v0.2.0
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-11-22 16:38:50 +01:00
Ron Evans
0bc0ef868d
adaptor/macos: handle case when adapter enable sends notification before event delegate is set
...
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2020-10-28 08:10:15 +01:00
Ron Evans
266de9824a
gattc/*: DeviceCharacteristic Read() implementation
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-10-22 19:04:47 +02:00
Linus Wallgren
c27b1cb3be
Document async Disconnect behaviour
...
This was mentioned by @aykevl in https://github.com/tinygo-org/bluetooth/pull/32#issuecomment-698313299
2020-10-07 07:32:17 +02:00
deadprogram
2fb3b08920
modules: update to latest version of go-bluetooth package for Linux
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-10-03 19:46:46 +02:00
deadprogram
9daf7205ab
examples: discover should only wait on startup on baremetal, since macOS does not like that
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-09-24 14:30:13 +02:00
deadprogram
a2662956b8
gap/all: add Disconnect() to Driver
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-09-24 14:30:13 +02:00
deadprogram
281d195e75
gap: change signature for Addresser interface Set() function to accept string and then parse it as needed
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-09-20 14:56:48 +02:00
deadprogram
f04c1cbe78
docs: set correct pkg.go.dev path in README badge
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-09-17 18:48:00 +02:00
deadprogram
3e2ce45abc
examples: extend HRS to perform notifications, add heartrate-monitor example that shows notifications
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-09-17 17:17:18 +02:00
deadprogram
c1d8db922f
Prepare for release v0.1.0
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2020-09-17 12:33:56 +02:00
Ron Evans
fa16c65199
examples: let macos use rawterm to compile nusclient
2020-09-17 12:32:59 +02:00