【问题标题】:Sending data to BLE device from iPhone?从 iPhone 向 BLE 设备发送数据?
【发布时间】:2012-11-29 15:09:27
【问题描述】:

我正在开发一个 iPhone 应用程序,该应用程序旨在通过 iPhone 控制汽车的某些功能。功能包括锁定和解锁车门、打开后备箱以及发出警报声。我正在使用核心蓝牙框架,因此我可以将手机连接到 BLE 设备。

实际现象是发送2个不同的电压电平:0和1。所以门在1时打开,在0时关闭。我该如何通过代码做到这一点,或者有没有其他方法?

【问题讨论】:

  • 您有想要控制的外围设备的 BLE 规格吗?那么来自 Apple 的 Core Bluetooth example 应该会有所帮助。

标签: iphone objective-c xcode core-bluetooth


【解决方案1】:

在 CoreBluetooth.framework 中查找 writeValue:forCharacteristic:type

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-03-24
    • 1970-01-01
    • 1970-01-01
    • 2015-04-28
    • 2019-05-09
    • 1970-01-01
    • 2014-11-15
    • 1970-01-01
    相关资源
    最近更新 更多