• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    JSON from Mervis ?

    Mervis
    3
    4
    561
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pascal37 last edited by pascal37

      I need to communicate with a device that as a JSON API.
      What is the simplest solution in Mervis?
      Do you have some example code?
      Many thanks in advance.

      Martin Kudláček 1 Reply Last reply Reply Quote 0
      • Martin Kudláček
        Martin Kudláček administrators @pascal37 last edited by

        Hello @pascal37,
        the Mervis is a sort of a world on its own and it is complicated to make it communicate over anything else then supported protocols. Any other type of communication is usually done via local ModbusTCP master written in Python and pushing data to ModbusTCP slave configured in the Mervis. The Pymodbus library is especially handy for this.

        Best regards,
        Martin

        1 Reply Last reply Reply Quote 0
        • P
          pascal37 last edited by

          Hi @martin-kudláček,
          Thanks for your help.
          Is it possible to run the Pymodbus library + python script on the same Axon PLC?
          Do you have some example code and tutorial how to deploy it?
          Many thanks in advance.

          T 1 Reply Last reply Reply Quote 0
          • T
            tomas_hora administrators @pascal37 last edited by

            Hi @pascal37 ,
            sure you can run the python scrip on the same Axon. We do not have a tutorial for that, but once you enable ssh (via service interface or using the new upcomming Mervis IDE) you will have access to a linux machine as you know.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post