Hi,
thank you! Shame on me as the bug was really silly (copy'n'paste
category, eh). 0x0000 value is the default, getting the actual one
never occurred. Instead of:
switch (packet_type) {
case HCI_EVENT_PACKET:
switch (packet[0]) {
case RFCOMM_EVENT_OPEN_CHANNEL_COMPLETE:
rfcommChannelID = READ_BT_16(packet, 12);
break;
...
}
}
}
I was doing:
switch (packet_type) {
case RFCOMM_EVENT_OPEN_CHANNEL_COMPLETE:
rfcommChannelID = READ_BT_16(packet, 12);
break;
...
}
So, thank you again for your time, I was sure I'm doing wrong
something essential...
Also, I agree adding notes, that would be really helpful! :)
On Apr 30, 10:52 am, Matthias Ringwald <
matthias.ringw...@gmail.com>
wrote:
> Screen shot 2012-04-30 at 10.37.47 AM.png
> 22KViewDownload
>
> Screen shot 2012-04-30 at 10.38.00 AM.png
> 17KViewDownload
>
>
>
> On Apr 30, 2012, at 9:47 AM, xius wrote:
>
>
>
>
>
>
>