Confirmed users
192
edits
Shawn huang (talk | contribs) |
Shawn huang (talk | contribs) |
||
| Line 32: | Line 32: | ||
bluedroid only provides two API, connect and listen. To receive connected or disconnected, you have to read connection signal. | bluedroid only provides two API, connect and listen. To receive connected or disconnected, you have to read connection signal. | ||
connection signal format as: | connection signal format as: | ||
<pre> | |||
typedef struct { | typedef struct { | ||
short size; | short size; | ||
| Line 38: | Line 39: | ||
int status; | int status; | ||
} __attribute__((packed)) sock_connect_signal_t; | } __attribute__((packed)) sock_connect_signal_t; | ||
</pre> | |||
==Debugging:== | ==Debugging:== | ||