I've just found out that some Python code I've got working on Linux also needs to work on OSX.
For reliability reasons, on Linux I've been using a cludgy but effective approach to reading and writing characteristics on Bluetooth Low Energy devices. I've been simply spawning a subprocess that calls the
gatttool command with the appropriate arguments and capturing the output. (None of the libraries that I tried would work reliably).
So now that I have to get it working on OSX, it would be wonderful to just use the same approach, but with a tool that works on OSX. Requirements for the tool are:
- Read from an arbitrary bluetooth characteristic on an arbitrary device
- Write to an arbitrary bluetooth characteristic on an arbitrary device
Is there such a tool for OSX? If not is there a way I can get
gatttool working under OSX?