feat: sensor readings with JWT auth, OLED display, data_destination_url
This commit is contained in:
@@ -290,7 +290,7 @@ def run():
|
||||
if caps.get('has_nfc'):
|
||||
from provisioning_nfc import run_provisioning_nfc
|
||||
_show(['PROVISIONING', 'NFC mode', '', 'Tap writer badge', ''])
|
||||
cfg = run_provisioning_nfc(_nfc)
|
||||
cfg = run_provisioning_nfc()
|
||||
else:
|
||||
from provisioning_server import run_provisioning
|
||||
wlan_sta = network.WLAN(network.STA_IF)
|
||||
@@ -335,11 +335,11 @@ def run():
|
||||
|
||||
if node_type == 'sensor':
|
||||
from node_sensor import run_sensor
|
||||
run_sensor(cfg, caps)
|
||||
run_sensor(cfg, caps, checkin_result['token'])
|
||||
|
||||
elif node_type == 'relay':
|
||||
from node_relay import run_relay
|
||||
run_relay(cfg, caps)
|
||||
run_relay(cfg, caps, checkin_result['token'])
|
||||
|
||||
else:
|
||||
print('[operational] unknown node_type:', node_type)
|
||||
|
||||
Reference in New Issue
Block a user