Best practice to stream data in realtime from Android to Bluetooth
问题 I have an android application that writes data to a simblee bluetooth. Below the code I have : public void sendData(String data) { Utils.addLog(TAG,"sending data : " + data); if (mSerialCharacterstic == null) { Utils.addLog(TAG,"serial characteristic not found yet!"); return; } Utils.addLog(TAG,"starting write data..."); mSerialCharacterstic.setValue(data); Utils.addLog(TAG,"writing : " + data); // mGatt.beginReliableWrite(); mGatt.writeCharacteristic(mSerialCharacterstic); } /***************