Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过xcode中的服务扫描Arduino外围设备_Xcode_Arduino_Bluetooth Lowenergy_Core Bluetooth - Fatal编程技术网

通过xcode中的服务扫描Arduino外围设备

通过xcode中的服务扫描Arduino外围设备,xcode,arduino,bluetooth-lowenergy,core-bluetooth,Xcode,Arduino,Bluetooth Lowenergy,Core Bluetooth,当我扫描centralManager.scanForPeripherals(带有服务:nil) 它与我的设备一起显示 但是当我把它改成UUID时,我没有得到任何结果 #define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b" #define CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8" 无结果您确定uuid正在发布吗?如果centralManager

当我扫描
centralManager.scanForPeripherals(带有服务:nil)

它与我的设备一起显示
但是当我把它改成UUID时,我没有得到任何结果

#define SERVICE_UUID        "4fafc201-1fb5-459e-8fcc-c5c9c331914b"
#define CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8"

无结果

您确定uuid正在发布吗?如果
centralManager(u0;:didDiscover:advertisementData:rssi:)
的播发数据中没有出现
ble\u iotCBUUID
值,则外围设备只能播发其拥有的服务的一个子集,它将无法工作。
#define SERVICE_UUID        "4fafc201-1fb5-459e-8fcc-c5c9c331914b"
#define CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8"