Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading the Thread TLVS dataset (CON-1423) #1161

Open
pavel808 opened this issue Nov 19, 2024 · 1 comment
Open

Reading the Thread TLVS dataset (CON-1423) #1161

pavel808 opened this issue Nov 19, 2024 · 1 comment

Comments

@pavel808
Copy link

It's possible to read the Thread TLVS dataset with the following Matter esp cli command :

matter esp ot_cli dataset active -x

How is it possible to read this value from within application code? \

I have a C++ Matter controller application running on the ESP Thread BR device and currently I am hard-coding the dataset tlvs value there for commissioning. It would be much better to be able to read this directly from the TBR into the application instead if possible. Thanks in advance.

@github-actions github-actions bot changed the title Reading the Thread TLVS dataset Reading the Thread TLVS dataset (CON-1423) Nov 19, 2024
@shubhamdp
Copy link
Contributor

You can get the active dataset using otDatasetGetActiveTlvs() API.

Please find the documentation here: https://openthread.io/reference/group/api-operational-dataset#otdatasetgetactivetlvs

Please find the usage here (this is what gets executed when you hit matter esp ot_cli dataset active -x): https://github.com/openthread/openthread/blob/main/src/cli/cli_dataset.cpp#L698

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants