Skip to main content
Dominic Moffat
Visitor II
Nov 6, 2017 5:32 PM UTC
Question

SPWF04S configuration variables from uPython

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.

    3 replies

    Gerardo GALLUCCI
    ST Employee
    Nov 8, 2017 5:32 PM UTC
    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
    Jan 8, 2018 3:25 AM UTC
    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
    Jan 9, 2018 12:19 PM UTC
    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