• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. lesliejobse
    3. Posts
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by lesliejobse

    • Manually get unipi(/TCP Modbus) data

      The issue at hand is that I don't know how to retreive data from the defaultConnections created with the IDE.
      The HMI creates UI's for this and has some way to parse the binary data returned by the service calls.

      My question is how I could do the same?

      So I call:
      127.0.0.1/api.cgi with POST data {"ver":1,"v":["svc://DefaultConnection/916[0,1]]}

      This returns

      {
          "ver": 1,
          "code": "ok",
          "msg": "",
          "v": [
              {
                  "i": "svc://DefaultConnection/916[0,1]",
                  "v": "41CD7936",
                  "q": "good",
                  "t": 636586125890000000
              }
          ]
      }
      

      How can I parse this result into the actual data?
      Or even better, is there another way of retrieving this data?

      Thanks

      posted in Mervis
      L
      lesliejobse