Let's say I have two users A
and B
on their respective android devises androidA
and androidB
. I want both to be able to open an app, press a button in that app, which starts up BLE and will then have each send the other their respective user_id
. So, androidA
receives b
and androidB
receives a
. I understand this could happen via the callback, and that I could get this to happen for one-way communication. That is, I could have androidB
as the peripheral, and androidA
as the central, so a
receives the user_id
of b
.
Is two-way communication possible? If not, would it be wise to wait for the callback, and once the callback happens have them switch roles? In that regard, I just need to check to make sure that when androidA
gets the callback for being in range of androidB
that androidB
also gets some sort of response to act on.