almende / virtuele-memo

Gadget for WOTS, World of Technology & Science
4 stars 0 forks source link

Optimize connection pattern for multiple users #15

Open mrquincle opened 10 years ago

mrquincle commented 10 years ago

Optimize connection pattern for multiple users. This means disconnecting on purpose, so other phones can connect to it.

The reason why this is necessary is because the iBeacon functionality does not give the same ID of the device across Android and iOS phones. Therefore there is a service implemented with a characteristic that gives a unique ID to the smartphone. However, to use that, you will need to connect to the device. And if the device is connected to say smartphone X, it will stop advertising, and be unable to be found with smartphone Y.

sukivb commented 10 years ago

We should only connect to the characteristic that gives the shared unique ID for iOS and android once and locally store a mapping of the android or iOS id to the one obtained in the characteristic. Like this we can use the beacon functionality again for receiving and transmitting messages without reconnection to the device. This should solve most of the issue's regarding sending and receiving memo's.