Skip to content

Commit

Permalink
update weServer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adeept committed Sep 10, 2020
1 parent 77a2041 commit f4a9dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/webServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def configPWM(command_input, response):

G_sc.initConfig(4,300,1)
replace_num('init_pwm4 = ', 300)

'''
def update_code():
# Update local to be consistent with remote
projectPath = thisPath[:-7]
Expand All @@ -345,15 +345,15 @@ def update_code():
print('Update successfully')
print('Restarting...')
os.system('sudo reboot')
'''
def wifi_check():
try:
s =socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.connect(("1.1.1.1",80))
ipaddr_check=s.getsockname()[0]
s.close()
print(ipaddr_check)
update_code()
# update_code()
if OLED_connection:
screen.screen_show(2, 'IP:'+ipaddr_check)
screen.screen_show(3, 'AP MODE OFF')
Expand Down

0 comments on commit f4a9dab

Please sign in to comment.