question: public void sendMessage ( String mac , MessageItem item , boolean needResponse , OnSendMessageListener listener ) { if ( mCurrStatus != STATUS . CONNECTED ) connectDevice ( mac , listener ) ; mMessageQueue . add ( item ) ; WriteRunnable writeRunnable = new WriteRunnable ( listener , needResponse ) ; mExecutorService . submit ( writeRunnable ) ; }
target:  Send a message to a remote device. If the local device did't connected to the remote devices, it will call connectDevice(), then send the message. You can obtain a response from the remote device, just as http. However, it will blocked if didn't get response from the remote device.