A Bluetooth Low Energy Library for the Red Bear Duo. Currently only supports peripheral and advertiser roles and server.
hal_btstack_Log_info(true);
hal_btstack_error_info(true);
hal_btstack_enable_packet_info();
DuoBLE.begin();
DuoBLE.cpp includes a "debug" macro that can enable debugging messages in event dispatch.
- No support for central role yet.
- No support for client role yet.
- No support for Security (authentication / authorization / bonding / pairing)
- No support for authorized writes
- Characteristic broadcast flag isn't supported
- Can't add descriptors to Characteristics (btstack_hal doesn't provide access to att_db_util_add_attribute_uuid16())
- Can't provide different client responses with multiple simultaneous connections (btstack_hal doesn't pass the connection handle to callbacks like gattReadCallback and gattWriteCallback)
- Doxygen (
brew install doxygen
) - Moxygen (
npm install moxygen -g
)
doxygen
2moxygen --anchors --output duoble.md xml
- Thanks to Kam Low for documentation tips.
- Thanks to Sandeep Mistry's arduin-BLEPeripheral for some inspiration on structure.