Xcode 9-蓝牙模块HC-06 [英] Xcode 9 - Bluetooth module HC-06

查看:98
本文介绍了Xcode 9-蓝牙模块HC-06的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试在XCode上为iOS应用程序编码,并且目前遇到一些问题.

I am currently attempting to code for an iOS application on XCode and am currently having some issues.

我们的小组正在通过微控制器连接LED灯,我们需要我们的iOS应用程序连接到HC-06蓝牙模块,以便控制LED灯的开和关.

Our group is connecting LED lights through a microcontroller and we need our iOS application to connect to the HC-06 Bluetooth module in order to control the LED lights on and off.

我只需要担心代码的iOS方面,而不是微控制器.我只是想知道如何在Xcode上对此进行编码,以通过蓝牙发送"1"或"0"以向微控制器发出开"或关"信号?

I only need to worry about the iOS side of the code not the microcontroller. I was just wondering how would I go about coding this on Xcode to send either a '1' or a '0' through Bluetooth to signal either 'on' or 'off' to the microcontroller?

推荐答案

您不能使用HC-06 BT或任何蓝牙2.0模块,因为Apple使用.

You can't use HC-06 BT or any Bluetooth 2.0 module because Apple uses MFi license Program You can use HM-10 BT module to control your microcontroller via Bluetooth Low Energy. You can read about BLE technology this.

这篇关于Xcode 9-蓝牙模块HC-06的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆