How to send OBEX messages (PBAP) with QBluetoothSocket?
i want to send OBEX messages from my laptop to my smartphone. The main goal is to get the contacts of my smartphone per PBAP (phonebook access profile).
For this i created in QT a QBluetoothSocket which opens a RFCOMM connection to my smartphone and connected it to the PBAP service of my smartphone.
Now i need to send a GET request and a message with headers and data. I know which header and belonging data i need, but i do not know how to send it to the socket.
The socket expects a
const char *dataparameter. What i need to send:
GET Request with Headers:
Header ID: Connection Id Value: 1 Header ID: Name Value: telecom/pb Header ID: Type Value: x-bt/vcard-listing
Can someone please help me how to create this data message and send it through the socket to my smartphone?
I use wireshark to check the data, but all i get is a malformed OBEX package or the laptop just sends an OBEX fragement, but no OBEX message.
Hi and welcome to devnet,
That's a question you might want to bring to the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.
@SGaist Hey, thank you.
I will try it there.