From: Eugene Crosser Date: Mon, 11 Jul 2022 22:17:20 +0000 (+0200) Subject: beesure: decode wifi aps X-Git-Tag: 1.90~27 X-Git-Url: http://www.average.org/gitweb/?p=loctrkd.git;a=commitdiff_plain;h=cffceea601459816660ab46d46be2f3e9370c2fe beesure: decode wifi aps --- diff --git a/loctrkd/beesure.py b/loctrkd/beesure.py index 9c10286..e535b76 100755 --- a/loctrkd/beesure.py +++ b/loctrkd/beesure.py @@ -351,11 +351,12 @@ class UD(BeeSurePkt): ) = args[:17] rest_args = args[17:] self.base_stations_number = int(rest_args[0]) + # ???, mcc, net, (area, cell, strength)* self.base_stations = rest_args[1 : 4 + 3 * self.base_stations_number] rest_args = rest_args[3 + 3 * self.base_stations_number + 1 :] self.wifi_ap_number = int(rest_args[0]) - self.wifi_ap = rest_args[1 : self.wifi_ap_number] - # rest_args = rest_args[self_wifi_ap_number+1:] + # (SSID, MAC, strength)* + self.wifi_ap = rest_args[1 : 1 + 3 * self.wifi_ap_number] self.positioning_accuracy = rest_args[-1]