一个有按钮的硬件,在硬件上按一下按钮会发出相应的信号,怎么通过app端接收??

解决方案 »

  1.   

    首先你的硬件设备必须也是支持ble 4.0的,然后手机端调用corebluetooth 这个框架,调用里面的函数就可以通信
      

  2.   

    https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetoothBackgroundProcessingForIOSApps/PerformingTasksWhileYourAppIsInTheBackground.html#//apple_ref/doc/uid/TP40013257-CH7-SW13  我看到这了,你从头开始看