diff --git a/iroha-drip-general-master/bluetooth/wifi_beacon.py b/iroha-drip-general-master/bluetooth/wifi_beacon.py index 75ac8ea6254742a4f03c44e6c2ea1222d51334ad..289856f1065f6d488159802fb7c89c66af45e64d 100644 --- a/iroha-drip-general-master/bluetooth/wifi_beacon.py +++ b/iroha-drip-general-master/bluetooth/wifi_beacon.py @@ -16,7 +16,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '../..')) iface = 'Wi-Fi' # This is the wifi interface on the drone, Wi-Fi seems to be a common windows name # while linux seems to use wlan0 so the following checks if wlan0 is an interface then switches to that in that case. - +iface = 'wlp2s0' addrs = psutil.net_if_addrs() if "wlan0" in addrs.keys(): iface = "wlan0" @@ -65,5 +65,8 @@ def beacon_wifi(mac_address, element_info): mac = hex(get_mac()) # fetches device mac address mac_arr = list(bytearray.fromhex(mac[2:])) # converts it into int -vendor_info = '130042200100250B3FA14C1CEE522E25ADD5B000000000000000' # Static message to send -beacon_wifi(mac_arr, vendor_info) # Actual call to the method +#print(mac) +#print(mac_arr) + +#vendor_info = '130042200100250B3FA14C1CEE522E25ADD5B000000000000000' # Static message to send +#beacon_wifi(mac_arr, vendor_info) # Actual call to the method