wandersnail / easyble-x

A simple framework for Android Bluetooth Low Energy (BLE)
Apache License 2.0
156 stars 37 forks source link

请问下每包发送间隔时间为什么怎么设定都还是超过100毫秒呢? #18

Closed phoebewow closed 3 years ago

phoebewow commented 4 years ago
                val options = WriteOptions.Builder()
                    .setPackageSize(data.size)
                    .setPackageWriteDelayMillis(1)
                    .setRequestWriteDelayMillis(1)
                    .setWaitWriteResult(true)
                    .setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT)
                    .build()
                builder.setWriteOptions(options)
                connection.execute(builder.build())

                    .setPackageWriteDelayMillis(1)
                    .setRequestWriteDelayMillis(1)

这两个怎么设置都还是一样超过100毫秒

我现在的发送是每次收到数据后就间隔20毫秒后再发送数据,但是在蓝牙输出那边看到的数据却是在我发送后的150毫秒才从蓝牙发出。。请问下还有什么地方可以控制?

phoebewow commented 4 years ago

老大啥时候有空回一下呢?

wandersnail commented 4 years ago

没有其他地方了