Skip to main content
Dominic Moffat
Visitor II
November 6, 2017
Question

SPWF04S configuration variables from uPython

  • November 6, 2017
  • 1 reply
  • 784 views
Posted on November 06, 2017 at 18:32

Hi

How do I get access to the configuration variables (eg, standby_enabled etc) using a micropython scripts. Also how do I commit the variable changes to flash?

Best Regards

Dom

    This topic has been closed for replies.

    1 reply

    Gerardo GALLUCCI
    ST Employee
    November 8, 2017
    Posted on November 08, 2017 at 18:32

    Use the machine class. Methods config (AT+S.SCFG-like), config_store (AT+S.WCFG), config_reset (AT+S.FCFG)

    Jay Wyrick
    Visitor II
    January 8, 2018
    Posted on January 08, 2018 at 03:25

    How did you know this command existed. I can not find any documentation that called out these methods. I've look on the upython wiki and the ST site. All I can find is the AN4964 document which doesn't have these methods called out. I would like to do some other things but I don't know what is available and I would like to explore using the SWPF04 chip as a hostless part.

    Gerardo GALLUCCI
    ST Employee
    January 9, 2018
    Posted on January 09, 2018 at 12:19

    You can use the TAB key within the REPL mode to get auto-completion and the list of supported methods