Examples

Chapter Example File Summary
Chapter 2
All Chapter 2 examples
2.1 pybluez/findmyphone.py Device Inquiry
2.2 pybluez/rfcomm-server.py RFCOMM server
2.3 pybluez/rfcomm-client.py RFCOMM client
2.4 pybluez/l2cap-server.py L2CAP server
2.5 pybluez/l2cap-client.py L2CAP client
2.6 pybluez/rfcomm-server-sdp.py RFCOMM server with SDP advertisement
2.7 pybluez/rfcomm-client-sdp.py RFCOMM client with SDP search
2.8 pybluez/rfcomm-server-select.py Asynchronous RFCOMM server using select
2.9 pybluez/rfcomm-client-select.py Asynchronous RFCOMM client using select
2.10 pybluez/asynchronous-inquiry.py Asynchronous device inquiry
2.11 pybluez/sco-server.py SCO audio server
2.12 pybluez/sco-client.py SCO audio client
Chapter 3
All Chapter 3 examples
3.1 bluez/simplescan.c Device Inquiry
3.2 bluez/rfcomm-server.c RFCOMM server
3.3 bluez/rfcomm-client.c RFCOMM client
3.4 bluez/l2cap-server.c L2CAP server
3.5 bluez/l2cap-client.c L2CAP client
3.6 bluez/sdp-register.c Advertising a service with SDP
3.7 bluez/sdp-search.c Searching for a service with SDP
Not listed in text bluez/rfcomm-server-select.c Asynchronous RFCOMM server using select
3.8 bluez/rfcomm-client-select.c Asynchronous RFCOMM client using select
3.9 bluez/set-flush-to.c Setting the L2CAP flush timeout
Chapter 4
All Chapter 4 examples
4.1 winxp/inquiry.zip Device Inquiry
4.2 winxp/rfcomm-server.zip RFCOMM server using SDP
4.3 winxp/rfcomm-client.zip RFCOMM client using SDP
Not listed in text winxp/service-browse.zip SDP browse
Chapter 5
All Chapter 5 examples
5.1 jsr82/ServiceBrowser.java Device Inquiry and Service Search
5.2 jsr82/RFCOMMServer.java RFCOMM server using SDP
5.3 jsr82/RFCOMMClient.java RFCOMM client using SDP
5.4 jsr82/L2CAPServer.java L2CAP server using SDP
5.5 jsr82/L2CAPClient.java L2CAP client using SDP
Chapter 6
All Chapter 6 examples
6.1 series60/inquiry.py Series 60 Python Device Inquiry and Service Search
6.2 series60/rfcomm-server.py Series 60 Python RFCOMM Server
6.3 series60/rfcomm-client.py Series 60 Python RFCOMM Client
6.4 osx/inquiry.m OS X Objective C Device Inquiry
6.5 osx/inquiry.m OS X Objective C RFCOMM Client

License

Copyright (c) 2007 Albert Huang & Larry Rudolph

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.