This is a situation where we can leverage the rapid prototyping capabilities of Python and write a script that emulates a BLE client.Īs luck would have it, we recently worked on a device that had a flaky BLE connection with its companion mobile app. Though it’s a powerful tool, you’ll probably need a way to automate more complex tests for long-term development. LightBlue® allows you to connect to Bluetooth Low Energy devices, read and write to characteristics, subscribe to notifications, and a lot more.
If, however, you don’t already have a companion app for the device, you’d either have to write one from scratch, or use an existing app, such as our flagship mobile app LightBlue® (available on Android and iOS). When developing a Bluetooth Low Energy peripheral, it’s often useful to have an app that can connect to and test the peripheral to ensure it’s working as expected.