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

    Checking internet connection within mervis

    Mervis
    2
    3
    93
    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.
    • L
      ladmanj last edited by

      Hello,

      I have two Unipi Neurons installed in a remote house, which is connected to the internet only by 4G wireless modem.
      I have openvpn based connection which I use to manage the Neurons and other network connected devices.

      The wireless modem die sometimes and then a power cycle is necessary.

      I want to lead the power via one of the Neurons relay and implement that logic in mervis.

      Please, can you recommend me how to attempt this? I don't know how to check the internet connection within mervis.

      Thank you very much.

      JL

      1 Reply Last reply Reply Quote 0
      • A
        AVsetula administrators last edited by

        Hello,

        Currently, the best way is to find out the availability of the Internet connection in the OS and then write this information to the ModbusTCP server. You can create a ModbusTCP server directly in the OS as a separate program or define it in Mervis.

        The subsequent logic for switching the relay on/off is already simple.

        Best regards,
        Antonin

        L 1 Reply Last reply Reply Quote 0
        • L
          ladmanj @AVsetula last edited by

          @AVsetula

          Thank you for your answer, even it was not what I expected.

          The library of functions seems to be rather limited.

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