yiguozhen
yiguozhen
Hi, PlatformException(connect, Peripheral not found, null) i also have the error at method connect, only in ios, anyone knows how to fix it?
可以尝试一下这种方式: //发现服务 Future discoverChars() async { final value = await RxBle.discoverChars(deviceId); if (!mounted) return null; setState(() { chars = value; }); //发现服务之后,设置连接密码 // RxBle.observeChar(deviceId, '0783b03e-8535-b5a0-7140-a304d2495cb8'); RxBle.writeChar(deviceId, '0783b03e-8535-b5a0-7140-a304d2495cba', RxBle.stringToChar('AB12')); RxBle.observeChar(deviceId, '0783b03e-8535-b5a0-7140-a304d2495cb8')...
您那边有遇到数据一直写入失败的情况吗?