The Mobile sends a request for rssi
Invokes the l2cap Method ready()(This method Determines if there is a packet that can be read via a call to receive() If true, a call to receive() will not block the application.)If there is no packet[The btnode takes sometime to complete the bt_hci_read_rssi ] the mobile sends the request for rssi packet again. Here comes the problem.Before completing bt_hci_read_rssi if it
receives series of packets it gets strucked
This is not happening if the Mobile sends a request for rssi.Invokes call to receive()--This is a blocking operation[Method ready was not used here].It waits till it receive the packet.so never sends the request for
rssi again until it receives the packet.
code for simple communication between Mobile and btnode