# Best way to setup the configTree with le\_cfg

**URL:** <https://forum.legato.io/t/best-way-to-setup-the-configtree-with-le-cfg/5950>\
**Category:** Uncategorized\
**Created:** [August 29, 2021, 4:17am UTC](https://forum.legato.io/t/best-way-to-setup-the-configtree-with-le-cfg/5950 "2021-08-29T04:17:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [August 29, 2021, 4:17am UTC](https://forum.legato.io/t/best-way-to-setup-the-configtree-with-le-cfg/5950/1 "2021-08-29T04:17:13Z")

</div>

we are looking at setting up the configTree for the wifiService through legato, I understand this should be wby using the le\_cfg API?  
Is there any example of code about how this can be done?  
It would help us a lot.  
Thanks

---

<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 29, 2021, 9:44am UTC](https://forum.legato.io/t/best-way-to-setup-the-configtree-with-le-cfg/5950/2 "2021-08-29T09:44:13Z")

</div>

You can see here on config tree example

> [@Legato Config Tree undefined reference to 'le\_cfg\_...'](https://forum.legato.io/t/legato-config-tree-undefined-reference-to-le-cfg/5937/4):
>
> You can refer to following sample to use config tree:

---

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [August 31, 2021, 9:20am UTC](https://forum.legato.io/t/best-way-to-setup-the-configtree-with-le-cfg/5950/3 "2021-08-31T09:20:19Z")

</div>

it seems working for writing the configTree, cheers
