This library abstracts low-level C Bluetooth utilities on each of the Tier 1 GHC platforms, similar to Java's BlueCove and Python's PyBluez. This is currently a work in progress, so do not expect anything to work yet.
-
Windows x86_64 (Winsock)1
- Port the Winsock examples
-
OS X (IOBluetooth)2
- Port each of the OSX Bluetooth examples
-
Linux (BlueZ)
- Wrap all needed C functionality with
c2hs
- Device inquiry
- RFCOMM server
- RFCOMM client
- L2CAP server
- L2CAP client
- SDP search
- Set L2CAP flush timeout
- Wrap all needed C functionality with
-
FreeBSD (
netgraph
)
Aside from having a Bluetooth-enabled computer, you must have some software installed before installing the bluetooth
package.
You need to have the BlueZ development libraries installed.
apt-get install bluez libbluetooth-dev
yum install bluez-libs-devel
Alternatively, you can install from source.
1 Many of the Winsock headers (e.g., ws2bth2.h
) appear to be available in MinGW-w64 but not MinGW. Although MinGW-w64 supports both 32- and 64-bit Windows, only 64-bit Windows GHC is packaged with MinGW-w64 at the moment, so the bluetooth
package does not support 32-bit Windows.
2 I do not own a Mac, so I am unable to test OS X at the moment.