Skip to content

Cross-platform Bluetooth API for Go and TinyGo.

License

Notifications You must be signed in to change notification settings

sbinet-staging/bluetooth

Repository files navigation

Go Bluetooth

Bluetooth API for embedded devices.

This package attempts to build a cross-system Bluetooth API written in Go. It specifically targets embedded devices that are supported by TinyGo.

At the moment, there is only support for the S132 SoftDevice (binary driver) on Nordic Semiconductors devices.

Flashing the SoftDevice

Flashing the SoftDevice can be tricky. If you have nrfjprog installed, you can erase the flash and flash the new BLE firmware using the following commands.

nrfjprog -f nrf52 --eraseall
nrfjprog -f nrf52 --program s132_nrf52_6.1.1/s132_nrf52_6.1.1_softdevice.hex

After that, don't reset the board but instead flash a new program to it. For example, you can flash the Heart Rate Sensor example using tinygo:

tinygo flash -target=pca10040-s132v6 ./examples/heartrate

About

Cross-platform Bluetooth API for Go and TinyGo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.7%
  • Go 6.2%
  • Makefile 0.1%