Connect with the device name #946
-
|
Hello, it is possible to use BleManager.connect('nameOfPeripherals') to enable the connection ? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 6 replies
-
|
No, is not possible, the name is not unique. |
Beta Was this translation helpful? Give feedback.
-
|
If I scan for the device and, when connecting to it, save its If so, do you know if this strategy works on both Android and iOS? |
Beta Was this translation helpful? Give feedback.
-
|
Yes you can.
… Message ID:
<innoveit/react-native-ble-manager/repo-discussions/946/comments/14065252@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
That's the standard way to do it. You can store on a in memory variable
like global.autoReconnectDeviceWithIds = [] and make your own business
logic with that.
…On Sun, Aug 10, 2025 at 5:51 PM Lucas Alves ***@***.***> wrote:
Yes you can.
> Message ID:
> <innoveit/react-native-ble-manager/repo-discussions/946/comments/14065252
> @github.com>
>
|
Beta Was this translation helpful? Give feedback.
-
|
But on IOS you don't get the mac address, instead you would receive a uuid
that behaves just fine.
On Sun, Aug 10, 2025 at 5:53 PM Lucas Alves ***@***.***>
wrote:
… That's the standard way to do it. You can store on a in memory variable
like global.autoReconnectDeviceWithIds = [] and make your own business
logic with that.
On Sun, Aug 10, 2025 at 5:51 PM Lucas Alves ***@***.***>
wrote:
> Yes you can.
>
>> Message ID:
>> <innoveit/react-native-ble-manager/repo-discussions/946/comments/14065252
>> @github.com>
>>
>
|
Beta Was this translation helpful? Give feedback.
-
|
The uuid is unique per device -> phone, so in that case won't work cause
the uuid is not meant to be saved on a server.You would have to save each
device uuid + a unique phone identifier to be able to distinguish each uuid
that your server have. A kind of hashmap of a hashmap
…On Sun, Aug 10, 2025 at 4:00 PM Daniel Gatis ***@***.***> wrote:
@lucaswitch <https://github.com/lucaswitch> Even if I scan and save using
iPhone A and send that ID to my server, can another iPhone B connect to the
same device using that same ID?
—
Reply to this email directly, view it on GitHub
<#946 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG5NZ47AFKFGIGORZNXPAO33M6JGFAVCNFSM6AAAAACDRQBBV6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMBWGU4DMNI>
.
You are receiving this because you were mentioned.Message ID:
<innoveit/react-native-ble-manager/repo-discussions/946/comments/14065865@
github.com>
|
Beta Was this translation helpful? Give feedback.
No, is not possible, the name is not unique.