Can somebody help me how to solve the issue.
My current beacon setup :
Beacon device - Estimote. UUID - same for the two beacons.
- I have placed each beacon in two rooms, rooms are 20-30 Meters away from each other
- I'm hitting webservice and updating something (when the proximity is near or immediate) when i enter a specific room (checking if major and minor of this room actually belongs to this room) 3.It also hits another webservice and updating something (when the proximity is far and unknown).
Problem with the current algorithm: 1. When i enter room 1 and if it is near or immediate, it hits webservice1. When this happens, room2 proximity will be far or unknown, then again webservice2 is hitting and also there are lot of fluctuation. Sometimes when i'm in room1, room2 beacon proximity shows as near. I don't this to happen
New Approach and Questions
- I would like to Monitor for specific region , say room1 when i'm near say 5 meters away, and start ranging the beacon only when proximity is near or immediate. and stop ranging when proximity is far or unknown or i'm more than 5 meters away
- When i move near to room2 (5 meters away) and if the proximity of room2 is near or immediate, it should start ranging room2 and stop ranging room1
- I would like to have clear approach or way to write algorithm to achieve the above. Calculation can be using the proximity or using some other idea (like combination of RSSI and proximity or something else)
It would be great if you can explain me in detail with example on how to achieve the new approach or you can tell me if there is any other better approach, but please explain with code.
My foremost concern is, it should't range room 2 beacon when i'm in room1 or just 5 meter away from room1 and vice versa.