-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathstart.py
More file actions
41 lines (30 loc) · 943 Bytes
/
start.py
File metadata and controls
41 lines (30 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import sys
import logging
import connect
logging.basicConfig(logging.DEBUG)
log = logging.getLogger(__name__)
sys.path.append('/flash/upy')
sys.path.append('/flash/webthing')
sys.path.append('/flash/example')
connect.connect_to_ap()
connect.start_ntp()
def rgb():
print('importing esp32_wrover_kit_rgb...')
import esp32_wrover_kit_rgb
print('Starting esp32_wrover_kit_rgb server...')
esp32_wrover_kit_rgb.run_server()
def single():
print('importing single_thing...')
import single_thing
print('Starting single_thing server...')
single_thing.run_server()
def multi():
print('importing multiple_things...')
import multiple_things
print('Starting multiple_things server...')
multiple_things.run_server()
def thing():
print('importing sparkfun_esp32_thing...')
import sparkfun_esp32_thing
print('Starting sparkfun_esp32_thing server...')
sparkfun_esp32_thing.run_server()