File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 3
3
import time
4
4
from machine import ADC , Pin , reset
5
5
6
- post_url = "https://your.influx.net:8086/write?db=octopuslab&u=usr &p=psw "
7
- post_data = "solar,place=octopuslab ,id=1 keepalive={0},solarVolt={1}"
6
+ post_url = "https://your.influx.net:8086/write?db=octopuslab&u=USR &p=PSW "
7
+ post_data = "solar,place=DB ,id=1 keepalive={0},solarVolt={1}"
8
8
9
9
print ("Press CTRL+C to skip booting" )
10
10
for _ in range (0 ,3 ):
13
13
14
14
net = network .WLAN ()
15
15
net .active (1 )
16
- net .connect ("UPCDC21985 " , "fuu2rFefzw6t " )
16
+ net .connect ("SSID " , "SPW " )
17
17
18
18
keepalive = 0
19
19
errorcount = 0
@@ -28,6 +28,7 @@ def wait_connect():
28
28
29
29
if retry > 30 :
30
30
break
31
+
31
32
32
33
def sendData (keepalive , solarRaw ):
33
34
global errorcount
@@ -59,4 +60,4 @@ def sendData(keepalive, solarRaw):
59
60
print ("Solar RAW: {0}, freeMem: {1}" .format (solarRaw , gc .mem_free ()))
60
61
gc .collect ()
61
62
time .sleep (30 )
62
- keepalive += 1
63
+ keepalive += 1
You can’t perform that action at this time.
0 commit comments