Listing 2. Function used to link each beacon to the corresponding room. |
1
|
/*
|
2
|
* IndoorLocation
|
3
|
* @param beacon_address the BLE beacon mac address
|
4
|
* @param location_type the location (room) string label
|
5
|
* @param location_id the location (room) specific beacon identifier
|
6
|
* @param location_calibrated_rssi the integer value of RSSI measured at 1 meter
|
7
|
*/
|
8
|
indoorLocations.add(new IndoorLocation("E0:2E:61:8A:19:E7", "Livingroom", "53", -70));
|
9
|
indoorLocations.add(new IndoorLocation("D3:5E:63:38:3B:45", "Bedroom", "56", -65));
|
10
|
indoorLocations.add(new IndoorLocation(DC:64:4C:44:61:8C", "Livingroom", "32", -50));
|
11
|
indoorLocations.add(new IndoorLocation("D4:64:95:34:4F:46", "Bathroom", "LVR", -70));
|
12
|
indoorLocations.add(new IndoorLocation("FD:19:B1:2A:45:6B", "Bathroom", "46", -80));
|
13
|
indoorLocations.add(new IndoorLocation("F0:A9:05:0A:6F:DB", "Bathroom", "54", -60))
|
14
|
indoorLocations.add(new IndoorLocation("C8:7E:EC:5F:E4:00", "Bedroom", "47", -60));
|
15
|
indoorLocations.add(new IndoorLocation("D4:3E:77:B1:F8:9D", "Kitchen", "45", -50));
|
16
|
indoorLocations.add(new IndoorLocation("E9:68:B7:2C:F9:68", "Kitchen", "23-black", 0));
|