Skip to content

Commit da39d87

Browse files
typo
1 parent 57c2f82 commit da39d87

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

solar1.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import time
44
from machine import ADC, Pin, reset
55

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}"
88

99
print("Press CTRL+C to skip booting")
1010
for _ in range(0,3):
@@ -13,7 +13,7 @@
1313

1414
net = network.WLAN()
1515
net.active(1)
16-
net.connect("UPCDC21985", "fuu2rFefzw6t")
16+
net.connect("SSID", "SPW")
1717

1818
keepalive=0
1919
errorcount=0
@@ -28,6 +28,7 @@ def wait_connect():
2828

2929
if retry > 30:
3030
break
31+
3132

3233
def sendData(keepalive, solarRaw):
3334
global errorcount
@@ -59,4 +60,4 @@ def sendData(keepalive, solarRaw):
5960
print("Solar RAW: {0}, freeMem: {1}".format(solarRaw, gc.mem_free()))
6061
gc.collect()
6162
time.sleep(30)
62-
keepalive+=1
63+
keepalive+=1

0 commit comments

Comments
 (0)