gpt4 book ai didi

ios - 通过 UDP 在 Arduino 和 iOS 设备之间发送和接收字符串

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:20:51 32 4
gpt4 key购买 nike

我需要通过 UDP 在 Arduino 和 iOS 设备之间发送和接收数据。我可以使用 Arduino 官方网站上的示例吗:http://arduino.cc/en/Tutorial/UDPSendReceiveString .如果是,如何从 iOS 设备发送字符串。请帮助我。

最佳答案

Can I use example from official Arduino site.

If yes, how can send strings from iOS device.

嗯,首先你需要使用 Arduino Ethernet Shield,或 Arduino Ethernet。

然后,您需要让您的 iOS 设备与您的 Arduino 在同一网络上(或者至少让 iOS 和 Arduino IP 地址可以相互访问,无论您如何做到这一点)。

最后,只需通读您链接的教程,尝试示例,根据您的用例调整示例中的地址。

我给你的建议是先用一台电脑测试与Arduino的UDP连接,然后用那台电脑测试与iOS设备的UDP连接,一旦你知道两者独立工作,让连接工作两种设备。

关于ios - 通过 UDP 在 Arduino 和 iOS 设备之间发送和接收字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18400197/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com