I am trying to log WiFi access point strengths to possibly triangulate a person’s position where GPS is not available (e.g. in a house). I want the column names to be BSSIDs or SSIDs, but I can only know the column names once a WiFi scan has been completed. I am thinking of making the user do a scan during the installation, output the BSSID or SSID to a text file, read the text file in the class that handles the database, and make my “create table” statement from what is in the text file. For example:
If the scan returns AP1, AP2, AP3, then the statement would be = create table accesspoints (AP1 INT, API2 INT, API3 INT)
But if the scan returns API1, API3, API4, then the statement would be = create table accesspoints (API1 INT, API3 INT, API4 INT)
I have been searching for hours and haven’t found anything answers… is this even possible? I don’t have much knowledge of databases in general, so can someone please help me? If anybody can think of another way to do it, please do not hesitate to share as well 🙂
Thanks!!
This doesn’t sound very scalable. What happens if the access points in the house change? Why not just have a row corresponding to each access point?