You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ble: move UUID, MAC and MACAddress into a new ble subpackage. The bluetooth package aliases them, so bluetooth.UUID and ble.UUID are the
same type and existing code keeps working. (#477)
ble: move AttributeProtocolError and the ErrAtt* codes into the ble
subpackage, aliased in the same way. ATT now uses them instead of a second
copy of the same 17 codes. (#477)
ble: rename UUID.bytes() to UUID.BytesLittleEndian(), and add ble.UUIDFromBytes and ble.NewMACAddress. (#477)
adapter: add SetConnectionStateHandler, which gives the handler a ConnectionState with the disconnect reason. SetConnectHandler is
deprecated, and go fix rewrites its callers. (#518)
gap: add ConnectionPriority to ConnectionParams (#472)
gattc: export ErrServiceNotFound and ErrCharacteristicNotFound, and
return them from every backend. (#501)
gattc: fix Read, which returned the length of the value instead of the
bytes copied, so a small buffer caused a panic. It now returns io.ErrShortBuffer when the value does not fit. (#497)
hci
hci: move the HCI, L2CAP and ATT protocol code into a new hci subpackage
that has no build tags, so it builds and unit tests on the host. A board
supplies an hci.Transport and calls hci.NewStack. (#478)
hci: add SetEventHandler and SetLEEventHandler, so that a controller can
consume an event or an LE subevent that the package does not know, and SendVendorCommand for the matching commands. Vendor extensions no longer
need to live in this repository. (#478)
hci: add unit tests, at 87 percent statement coverage. (#476)
hci: fix a panic on a Find Information Response, whose format byte was
treated as an entry length. (#476)
hci: bounds check the entry length of a Read By Type Response and a Read By
Group Type Response, which came off the wire unchecked. (#476)
hci: reject an ATT protocol data unit that is too short for its opcode,
rather than reading past the end of it. (#476)
hci: fix ReadBdAddr, which copied the event header into the address. (#476)
hci: fix ReadLEBufferSize, which read the raw packet buffer and raised the
maximum MTU far above what the response buffers hold. (#476)
hci: fix MTUReq, which asked for an MTU of zero. (#476)
hci: track the negotiated ATT MTU, so GetMTU reports it and a discovery
response carries more than one attribute. (#476)
hci: reject a truncated L2CAP connection parameter update request, which was
answered as accepted with zeroed parameters. (#476)
hci: Transport drops ReadByte, which nothing called. (#478)
hci: report the disconnect reason to the connection state handler (#518)
nordic semi
nrf528xx: add SetTxPower to set the advertising transmit power (#475)
nrf528xx: add EnableDCSupply to control the DC/DC converters (#475)
nrf52840: add Adapter.USBVBusPresent to detect USB cable removal (#487)
nrf52: add Adapter.Flash, a flash block device that uses the
SoftDevice (#489)
sd: report the disconnect reason to the connection state handler (#518)
softdevice: move the vendored SDK directories into a softdevice
subdirectory (#482)