Research Article
Road Traffic Monitoring System Based on Mobile Devices and Bluetooth Low Energy Beacons
Algorithm 1
Mobile device operations.
1while mobile device is active do | 2begin | 3t:= current time | 4repeat | 5if new beacon frame received and RSSI > threshold then | 6add record (time, position, beacon_ID, RSSI) to buffer | 7until (current time - t) > T | 8send records from buffer to server | 9end |
|