Navigation

    M5Stack Community

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

    Posts made by PhilG1300

    • RE: Accessing decoded JSON array

      @sodoku
      Hello,
      Yes your answer is correct, I have just found the answer just before you replied!!
      See attached screenshot.

      0_1609603120284_UIFlow_JSON_Decode.png
      Many thanks for the advice.
      Regards
      Phil

      posted in UIFlow
      P
      PhilG1300
    • Accessing decoded JSON array

      Hello,
      I am new to using UIFlow, but not to programming.
      I am using UIFlow on my M5Stack project.
      I am having difficuly in accessing a JSON decoded array.
      Within the Python code I have a snippet of code:-

      Decoded_Packet = json.loads(Packet)
      Decoded_Location = Decoded_Packet["location"]
      

      Which works in my application, but it won't change to the UIFlow - Blockly representation, nor save and load correctly.
      So my question in Blockly what is the equivalent of:-
      Decoded_Location = Decoded_Packet["location"]
      or
      Decoded_OutTemp = Decoded_Packet["stats]["current"]["outTemp"]

      Which work in the Python coding.

      Regards
      Phil.

      posted in UIFlow
      P
      PhilG1300
    • UIFLOW Measure input pulse

      Hello,
      I have been using Arduino for a while but have recently been trying UIFlow.
      Is there a way to measure the width of an input pulse on a GPIO input, similar to the Arduino pulsein() function?
      Regards
      Phil.

      posted in UIFlow
      P
      PhilG1300