code wiki / (root) / nx_iot_capability_test.nx

nx_iot_capability_test.nx

buildroot/runtime/nx_iot_capability_test.nx

3491 B67 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic iot
docsdependenciesstructsconstsfunctions

about

nx_iot_capability_test.nx -- gate for the per-device capability model. Proves: class -> capability set, capability queries, range clamping (incl. "not supported" -> -1), and the JSON descriptor the /iot UI consumes (exact lengths: a switch advertises only on_off; a colour bulb advertises on_off+brightness+color+color_temp+scene). expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls_x86_64.nx nx_iot_capability.nx nx_iot_capability_test.nx

imports: nx_syscalls_x86_64.nxnx_iot_capability.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_iot_class_is_valid nx_iot_cap_for_class nx_iot_cap_has nx_iot_cap_clamp_brightnes nx_iot_cap_has ↻ nx_iot_cap_clamp_color_tem nx_iot_cap_has ↻ nx_iot_cap_emit_json nx_iot_cap_has ↻ nx_iot_cap_puts_z

structs

none

consts

none

functions

15func main() -> i64