Skip to content

add examples for LwM2M execute with arguments#444

Open
nickAS21 wants to merge 1 commit into
thingsboard:mainfrom
nickAS21:lwm2m_execute_params
Open

add examples for LwM2M execute with arguments#444
nickAS21 wants to merge 1 commit into
thingsboard:mainfrom
nickAS21:lwm2m_execute_params

Conversation

@nickAS21
Copy link
Copy Markdown

@nickAS21 nickAS21 commented Jun 3, 2026

Description

Added comprehensive and properly formatted examples for executing LwM2M resources with single and multiple arguments (including timers and link values). This improves readability and helps users better understand the OMA LwM2M execute arguments format.

thingsboard/thingsboard#14881

Type of change

  • New / updated documentation page (src/content/docs/**)
  • Shared include file (src/content/_includes/**)
  • Component, layout, or styling change (src/components/**, src/styles/**)
  • Landing / use-case / case-study page (src/pages/**, src/data/**)
  • Redirects (src/data/redirects.ts)
  • Version bump / release (see release skill)
  • Build, CI, scripts, or tooling
  • Other (please describe)

Affected products

Related issues

  • Closes #

Checklist

  • pnpm check passes (Astro / TypeScript)
  • pnpm lint:eslint passes
  • pnpm lint:slugcheck passes (required if pages were added/renamed/moved across languages)
  • pnpm lint:linkcheck passes locally — required to merge; run it before requesting review (use pnpm lint:linkcheck:nobuild if you already ran a build)
  • Renamed/removed pages have a redirect in src/data/redirects.ts, and pnpm generate:redirects was run
  • No hardcoded versions — values come from src/data/versions.ts
  • Screenshots attached for visual changes

@nickAS21 nickAS21 requested review from ashvayka and stitenko June 3, 2026 14:22
@nickAS21 nickAS21 added the documentation Improvements or additions to documentation label Jun 3, 2026
@vvlladd28 vvlladd28 requested a review from Copilot June 4, 2026 07:06
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation examples for the ThingsBoard LwM2M Execute RPC that demonstrate how to pass OMA LwM2M execute argument lists (single/multiple args, values, and link values) to improve clarity for users integrating with execute-with-arguments support.

Changes:

  • Added an “Execute with Arguments” subsection with multiple request/response examples.
  • Included examples for single-argument, delayed/timer-like value, link value, and multi-argument-without-values formats.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


### Execute with Arguments

Execute a resource with parameters: execute Reboot on the device if the digit value is 5.
Execute a resource with parameters: execute Reboot on the device if the digit value is 5.

```json
{"method": "Execute", "params": {"id":"3/0/4","value":5}}
```

```
Execute {"id":"3/0/4","value":5}
# Response: {"result":"CHANGED"}
```

Execute a resource with parameters: execute Factory Reset on the device if the digit value is 2 -> after 60 seconds.
Execute a resource with parameters: execute Factory Reset on the device if the digit value is 2 -> after 60 seconds.

```json
{"method": "Execute", "params": {"id":"3/0/5","value":"2='60'"}}
```

```
Execute {"id":"3/0/5","value":"2='60'"}
- Digit 0 with a link value.

```json
{"method": "Execute", "params": {"id":"3/0/5","value":"2,0='https://thingsboard.io/docs/reference/lwm2m-api/'"}}
```

```
Execute {"id":"3/0/5","value":"2,0='https://thingsboard.io/docs/reference/lwm2m-api/'"}
- According to the OMA LwM2M execute arguments format, this represents ten arguments from 0 to 9, none of which have values.

```json
{"method": "Execute", "params": {"id":"3/0/5","value":"0,1,2,3,4,5,6,7,8,9"}}
```

```
Execute {"id":"3/0/5","value":"0,1,2,3,4,5,6,7,8,9"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants