# Read adef parameters from application?

**URL:** <https://forum.legato.io/t/read-adef-parameters-from-application/5944>\
**Category:** Uncategorized\
**Created:** [August 25, 2021, 2:44pm UTC](https://forum.legato.io/t/read-adef-parameters-from-application/5944 "2021-08-25T14:44:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 25, 2021, 3:24pm UTC](https://forum.legato.io/t/read-adef-parameters-from-application/5944/2 "2021-08-25T15:24:07Z")

</div>

How about this?

root@swi-mdm9x15:/legato/systems/current# config get /apps/hello2/cpuShare  
1024

You can also see here:

> [@About config tree API](https://forum.legato.io/t/about-config-tree-api/250):
>
> Hi, I can get the cpuShare parameter of my application hello2 by typing the following in the console: root@swi-mdm9x15:/legato/systems/current# config get /apps/hello2/cpuShare 1024 However, I cannot get it inside the application code. I have added the following in the adef file: requires: { configTree: { [rw] . } } [code]#include “legato.h” #include “interfaces.h” COMPONENT\_INIT { LE\_INFO(“Hello, world.2”); le\_cfg\_IteratorRef\_t iteratorRef = le\_cfg\_CreateReadTxn("/apps/hello2…

---

_[View the full topic](https://forum.legato.io/t/read-adef-parameters-from-application/5944)._
