# Reading Parameters in MicroPython

**URL:** <https://forums.digi.com/t/reading-parameters-in-micropython/21357>\
**Category:** Python\
**Tags:** micropython, xbee3\
**Created:** [May 13, 2020, 8:37am UTC](https://forums.digi.com/t/reading-parameters-in-micropython/21357 "2020-05-13T08:37:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SinCitiesSin](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@SinCitiesSin](https://forums.digi.com/u/SinCitiesSin)\
**Post date:** [May 13, 2020, 8:37am UTC](https://forums.digi.com/t/reading-parameters-in-micropython/21357/1 "2020-05-13T08:37:04Z")

</div>

Hello All,

There are a lot of parameters that you can set through XCTU, my question is, can my MicroPython code running on the device read and set these parameters?

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [May 13, 2020, 8:59am UTC](https://forums.digi.com/t/reading-parameters-in-micropython/21357/2 "2020-05-13T08:59:15Z")

</div>

Yes you can set and read some of them from Micro Python.

---

<div class="post-metadata">

**Author:** ![SinCitiesSin](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@SinCitiesSin](https://forums.digi.com/u/SinCitiesSin)\
**Post date:** [May 13, 2020, 2:15pm UTC](https://forums.digi.com/t/reading-parameters-in-micropython/21357/3 "2020-05-13T14:15:44Z")

</div>

That is great to hear, but how do I read and set the parameters of the device I am currently running on? What if I run the program and want to set my PANID? How through micropython can I set my local PANID?

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [May 15, 2020, 9:58am UTC](https://forums.digi.com/t/reading-parameters-in-micropython/21357/4 "2020-05-15T09:58:50Z")

</div>

Through the atcmd()

Just note that not all commands can be set this way.

[https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r\_function\_atcmd.htm%3FTocPath%3DXBee%2520module|XBee%2520MicroPython%2520module%2520on%2520the%2520XBee%25203%2520RF%25C2%25A0Modules|\_\_\_\_\_1](https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_function_atcmd.htm%3FTocPath%3DXBee%2520module%7CXBee%2520MicroPython%2520module%2520on%2520the%2520XBee%25203%2520RF%25C2%25A0Modules%7C _____ 1)
