49f8082e4b
There used to be GAP events (connect/disconnect). The main purpose for these events was to allow applications to re-start advertisement when a connection was lost - on nrf. Unfortunately things work differently on Linux, which already has this behavior and for which I haven't yet implemented these events. Therefore I have removed these events and instead added code to automatically restart advertisement on connection loss. Supporting multiple (incoming) connections as a peripheral would be useful, but is not currently supported.
5 lines
116 B
Go
5 lines
116 B
Go
package bluetooth
|
|
|
|
// Set this to true to print debug messages, for example for unknown events.
|
|
const debug = false
|