简体   繁体   English

使用它作为 BLE 外设在 raspberry-pi 上配置 wifi

[英]Configure wifi on raspberry-pi using it as a BLE perpheral

I have to develop an iOS app which connects to raspberry-pi via bluetooth and configures RPi's wifi to connect to a particular ssid.我必须开发一个 iOS 应用程序,它通过蓝牙连接到 raspberry-pi 并配置 RPi 的 wifi 以连接到特定的 ssid。 The ssid and password is provided from the app via bluetooth. ssid 和密码是通过蓝牙从应用程序提供的。

Is this possible to do?这是可能的吗? I am wondering if its possible to execute commands on RPi received from the app.我想知道是否可以在从应用程序接收到的 RPi 上执行命令。

Similarly we need to do it using Android.同样,我们需要使用 Android 来完成。 Can we achieve this using Bleno and Bluez on the pi?我们可以在 pi 上使用 Bleno 和 Bluez 来实现这一点吗?

You can configure the Pi via Bluetooth.您可以通过蓝牙配置 Pi。 You need a service running on the Pi and waiting for a device to establish a Bluetooth connection.您需要在 Pi 上运行服务并等待设备建立蓝牙连接。 This can either be a python or any other server-side script.这可以是 python 或任何其他服务器端脚本。

In your App, you connect to this service using Bluetooth and execute different commands to connect to the wifi.在您的应用程序中,您使用蓝牙连接到此服务并执行不同的命令以连接到 wifi。 See this site for more information on how to connect a pi to a wifi network. 有关如何将 pi 连接到 wifi 网络的更多信息,请参阅此站点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM