java - Low Energy Bluetooth in Android using GATT -
i've done lot of reading le bluetooth , gatt i'm still struggling understand gatt is. make simple i'd express how i'd app work, , told if it's possible or not? basic premise used location tracker , beacons (maybe ibeacons specifically) placed around building , whenever enter range of beacon message sent server phone. idea doesn't need scan, phone listens , whenever beacon advertises, phones in range hear , raise event.
scenario:
- client downloads app , enters building first time.
- the building has beacon in every room, advertising every 5 seconds example.
- when client walks room , in range of beacon, phone unfriendlier version of message "beacon 2 has rssi of -87".
- when leave room no longer hear message , nothing until hears message beacon.
note: scenario doesn't involve scanning, looping or pairing. phone know has listen le bluetooth messages.
so, possible? i've seen seems need scan , connect each beacon using gatt before can receive data them.
any infomation of matter appreciated, thankyou!
yes, possible. high level scenario merchant store beacon. 1) app client needs have uuid or major id of beacons stored locally. 2) merchant store same uuid or major id broadcast messages. 3) phone os keeps listening messages when entered geofence, os pass on these messages apps registered beacons listening. 4) app match uuid embed in message , identify if meant it. 5) if message uuid not match uuid on client app not consume message. 6) if message uuid matches client consume message , display on device, app not running @ point of time.
Comments
Post a Comment