有没有办法让智能手机充当本机反应的灯塔?

Is there a way to make a smartphone act as a beacon with react native?

我需要构建一个应用程序,让智能手机充当真正的灯塔。所以我不想检查 ble beacon 数据包,但我希望我的智能手机不断发送 ble beacon 数据包,然后它们将从其他设备接收。有可能用 React Native 做到这一点吗?我没有找到任何用于此目的的东西,我找到的唯一东西是

https://github.com/frostney/react-native-ibeacon
并且
https://github.com/MacKentoch/react-native-beacons-manager

但在我看来,他们不允许我做我想做的事。我找到了一些使用本机 android 应用程序进行操作的教程,但我对构建多平台应用程序很感兴趣。

有人知道吗?

使用制造商数据 (iBeacon) 或服务数据 (Eddystone Beacon) 作为广告数据的一部分创建信标。

我没用过,不过这个库好像有这个功能:

https://github.com/vitorpamplona/react-native-ble-advertiser#advertiser