iPhone 应用程序与非苹果设备中的电路板进行通信

发布于 2024-12-16 15:55:30 字数 269 浏览 1 评论 0原文

我们希望我们的 iPhone 应用程序能够与空气净化器内的电路板进行通信。

空气净化器内的电路板应该接收来自 iPhone 应用程序的信号,并根据这些信号在空气净化器中执行某些命令。

因此,您基本上应该能够使用 iPhone 应用程序通过蓝牙(最不可能是因为 Made for iPod 程序)或 WiFi(更有可能)来控制空气净化器。

我应该使用哪个框架?

下周我们将从一家公司订购一块电路板,我们需要知道应该使用哪个框架来构建 iPhone 应用程序控件。

We want our iPhone app to be able to communicate with a circuit board inside an air cleaner.

The circuit board inside the air cleaner should receive signals from the iPhone app, and based on those, do certain commands in the air cleaner.

So you should basically be able to use the iPhone app to control the air cleaner via bluetooth (least likely because of the Made for iPod program) or WiFi (more likely).

Which is the framework I should use?

We will order a circuit board from a company next week, and we need to know which framewoork we should build the iPhone app control with.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抚笙 2024-12-23 15:55:30

那么 NSNetServiceNetServiceBrowser 类将获得您开始在网络(wifi 和蓝牙)上发布服务,以便您的电路可以连接到您的 iOS 应用程序。听起来您需要为另一端提供一个相当低级的连接/消息传递库(您期望在电路板上运行什么?C++,纯C?)。您可以创建自己的库,也可以查看 C++ 网络库C++ boost::asio 库 并在其消息传递框架上使用/构建。一切都取决于您的“电路板”的功能。

Well the NSNetService and NetServiceBrowser classes will get you started publishing services on the networks (wifi and bluetooth) so that your circuit can connect to your iOS app. It sounds like your are going to need a pretty low level connection/messaging lib for the other side (what can you expect to run on your circuit board? C++, pure C?). Either create your own or you can look into the C++ network library or the C++ boost::asio library and use/build on their messaging frameworks. All depends on the capabilities of your "circuit board".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文