PDA

View Full Version : Reading / Writing from Bluetooth (Maemo)



Gavin Harper
20th January 2011, 21:24
I would like to read a bluetooth stream on an application that I will be developing for the N900.

What would be the recommended way to achieve this.

The data will be textual and numerical.

Thank you for any advice!

wysota
20th January 2011, 21:33
What do you mean by "stream"? Bluetooth works in terms of profiles and services and not general streams.

Gavin Harper
21st January 2011, 07:11
The device is to send numerical data and occasional textual data to the receiving Qt application.

Stream in this context may be somewhat of a misnomer, so I should rephrase the question,

What would be the best way, under a Qt application, to access the data sent from a bluetooth device.

I am not needing to create the connection from within the application as the phone/device will be already paired and the connection will be active. I just would like to read the data that it sends.

Added after 1 15 minutes:

Turns out that the correct search term was needed.

http://doc.qt.nokia.com/qtmobility-1.2/btchat.html

wysota
21st January 2011, 08:04
Bear in mind this is experimental API and your N900 doesn't have support for it yet.