Skip to content

hbock/bgasync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bgasync - Asynchronous Bluegiga/BGAPI support for Python 3

bgasync is a Python library for communicating with Bluegiga products supporting the BGAPI protocol (BLE112, BLED112, etc.). The library is focused on support for popular asynchronous I/O frameworks, including Twisted and asyncio.

Development is currently in a very early state; the API may change drastically without warning, and you will find bugs aplenty. Once it gets into a more stable state, I'm happy to accept issues, patches, pull requests, and feature requests.

If you're looking for a synchronous implementation in Python, there are several other interesting repositories on Github.

License

bgasync is licensed under the 2-clause ("Simplified") BSD license. See the COPYING file.

Python Support

Currently only 2.7 and Python 3.4+ are explicitly supported.

Twisted Support

Twisted support for the BGAPI protocol is provided via the bgasync.twisted package. Currently support is limited to working with commands and events in the BGAPI using BluegigaProtocol; the plan is to provide higher-level APIs for GATT, SMP, etc. operations as well.

Windows

Twisted support for Windows on Python 3 is limited to sockets via select(); thus the serial port support doesn't work yet. Workarounds are forthcoming; for now you can create a serial-TCP bridge in a separate process or thread and use BluegigaProtocol on a TCP connection.

asyncio support

asyncio support is currently planned but not developed.

About

Bluegiga BGAPI support for Twisted and asyncio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages