Use ubus list/call to inspect objects and invoke methods, listen/send for events, and monitor to capture bus traffic. Includes a troubleshooting table for Not found, Invalid argument and Permission denied.
ubus has two models: objects/methods/signatures on the bus, and a per-call blob/blobmsg payload. The official examples/server.c and client.c demonstrate policy parsing, deferred replies and subscriptions via hello/watch/count. This article breaks down the data model and includes a PC run.
tr181-led maps /sys/class/leds into the TR-181 Device.LEDs tree: LED[], CycleElement[], BrightnessLimiter, with color/brightness/cycle/fade support. This article breaks down the ODL, proxy mapping, sysfs calls, cycle state machine and permission boundaries, with ✅/⚠️/❓ status.
greeter_plugin is the most complete AMX data-model example: 4 ODL files define objects/instances/events/persistence, 4 C files implement methods/actions/events/entry point. Walk through ODL→C→build/run, including the state machine, transactions, dynamic Statistics and the PC build result.
Implements USP Device:2.13 LocalAgent.Threshold: multi-instance, Alias key, expressions/search paths, validate/destroy actions and a Triggered event. ODL walkthrough with ✅/⚠️/❓ verification status.
Same data model as greeter_plugin, but a standalone executable: libamxrt parses the command line, loads backends/ODL and registers the model; symbols in an executable cannot be resolved by import, so they must be registered in the ftab. With main.c walkthrough and app/plugin comparison.