Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. utaani
    3. Best
    U
    • Continue chat with utaani
    • Start new chat with utaani
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by utaani

    • RE: Read own API Key in UIFlow/micropython?

      @iamliubo, Thanks for reply!

      By using this code, I was able to get the API Key:

      import deviceCfg
      akey=deviceCfg.get_apikey()
      

      BTW, the MAC address can be obtained with the following code:

      macaddr=wifiCfg.wlan_sta.config('mac')
      macaddr='{:02x}:{:02x}:{:02x}:{:02x}:{:02x}:{:02x}'.format(*macaddr)
      

      Thank you!

      posted in UIFlow
      U
      utaani