initialize file, test wifi connection out with led to show if connected
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import network
|
||||
import urequests as requests #dependency faked as another dependency ig
|
||||
import requests
|
||||
# import urequests as requests #dependency faked as another dependency ig
|
||||
|
||||
url = "https://discord.com/api/webhooks/1199545130378608650/UyJj0e-YuSlmVZD87zaHitXZLC55RP6LVBUv3nt9ZWr6d4AGzSGKZ-zI6V_VwA6I4qSq" #webhook url, from here: https://i.imgur.com/f9XnAew.png
|
||||
|
||||
@@ -11,12 +12,12 @@ data = {
|
||||
|
||||
#leave this out if you dont want an embed
|
||||
#for all params, see https://discordapp.com/developers/docs/resources/channel#embed-object
|
||||
data["embeds"] = [
|
||||
{
|
||||
"description" : "Testing for temps",
|
||||
"title" : "Tent Temp=5000c"
|
||||
}
|
||||
]
|
||||
# data["embeds"] = [
|
||||
# {
|
||||
# "description" : "Testing for temps",
|
||||
# "title" : "Tent Temp=5000c"
|
||||
# }
|
||||
# ]
|
||||
|
||||
result = requests.post(url, json = data)
|
||||
|
||||
|
||||
4
Scripts/network-scan.py
Normal file
4
Scripts/network-scan.py
Normal file
@@ -0,0 +1,4 @@
|
||||
import network
|
||||
wlan = network.WLAN(network.STA_IF)
|
||||
wlan.active(True)
|
||||
print(wlan.scan())
|
||||
Reference in New Issue
Block a user