feat: boot manager, provisioning server, node stubs v0.3.0

This commit is contained in:
2026-06-06 17:25:52 +02:00
parent c22a2ea07e
commit 829a3e5f44
10 changed files with 622 additions and 145 deletions

20
node_sensor.py Normal file
View File

@@ -0,0 +1,20 @@
# ============================================================+
# Identity IoT — Node: Sensor
# (c) Copyright : ae Aeonian Engineering Limited - Hong Kong
# (c) Copyright : WIDE di D. Papa - Naples - Italy
# ============================================================+
import utime
def run_sensor(cfg, caps):
"""Main loop for sensor node type. Called from boot_manager."""
print('[sensor] starting — sensor:', caps.get('has_sensor'))
# TODO: read DHT22 / other sensor
# TODO: POST readings to backend via AES channel
# TODO: polling interval from cfg
while True:
print('[sensor] polling...')
utime.sleep(10)