Notifications can be received out of order on Android:https://github.com/don/cordova-plugin-ble-central/issues/625
How could i achieve maximum thread safety with a read/write BLE Gatt Characteristic? :https://stackoverflow.com/questions/38922639/how-could-i-achieve-maximum-thread-safety-with-a-read-write-ble-gatt-characteris
注1:如果是sdk27以上,可以通过在connectGatt函数中指定handler来保证所有数据回调运行在一个线程中,否则,只能通过在数据包中添加编号来解决。
注2:有可能与发起连接时所用的Handler有关,如果用主线程的Handler有可能能够避免产生数据失序的问题。