An other mystery I try this program to scan wifi , i'm in the nature connected
to nothing,only my smartphone.
My smartphone (SAMSUNG S9) is configured as acces point to INTERNET.
Code: Select all
sta_if = network.WLAN(network.STA_IF)
if sta_if.isconnected():
print(" IP MASQ GATEWAY DNS ")
print(sta_if.ifconfig())
nearby= sta_if.scan()
print("Liste des reseaux WIFI")
for j in nearby:
print("Nom reseau: ",j[0])
print("SSID: ",j[1])
print("Canal: ",j[2])
print("RSSI (db): ",j[3])
print("Autorisation: ",j[4])
print(sta_if.ifconfig())[color=#008000][/color]
without SSID
>>> %Run -c $EDITOR_CONTENT
IP MASQ GATEWAY DNS
('192.168.43.85', '255.255.255.0', '192.168.43.1', '192.168.43.1')
Liste des reseaux WIFI
Nom reseau: b'AndroidAP46E7'
SSID: b'n\xc7\xec;F\xe7'
Canal: 6
RSSI (db): -34
Autorisation: 3
('192.168.43.85', '255.255.255.0', '192.168.43.1', '192.168.43.1')
>>>
I don't know why
I have an other program witch send data to THINGSPEAK ,working well at home connected to a Box, it seem working well connected to smartphone but nothing is send to the cloud !!!
Maybe there's someone who could explain me ???
Thanks very much