• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Not working FindDevice.java

    BACnet4J general discussion
    2
    5
    1.9k
    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.
    • M
      mirvana
      last edited by

      The sample code FindDevice.java within bacnet4J 4.X is not woking.
      Because there is not LocalDevice.findRemoteDevice() funcation at bacnet4J 4.X.
      Although the FindDevice.java work with bacnet4j-3.X.jar, also somtimes it woks or it happens frequently time out error or not found network number error when running the code.
      I want to know how to resolve this problem and where is bacnet4J 4.X version of FindDevice.java?

      1 Reply Last reply Reply Quote 0
      • terrypackerT
        terrypacker
        last edited by

        This is the commit you are referring to https://github.com/infiniteautomation/BACnet4J/commit/a8743d2843f31c6c259fce92ef741bc78ca7aef9#diff-6ff8ba31ce7d782a109d942d81edef91

        That method was removed by the original author, perhaps you can use the getRemoteDevice method?

        https://github.com/infiniteautomation/BACnet4J/blob/4d69e83a61fd6ed57d16b1cdab0966ce0e6a0654/src/main/java/com/serotonin/bacnet4j/LocalDevice.java#L641

        1 Reply Last reply Reply Quote 0
        • terrypackerT
          terrypacker
          last edited by

          There are a few variants on that method in the LocalDevice class that may solve your problem.

          1 Reply Last reply Reply Quote 0
          • M
            mirvana
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • M
              mirvana
              last edited by mirvana

              Thank you for your answering.
              I realized that instaceId == deviceId ,later.
              I could do what I want as below.
              RemoteDeviceFuture dd = localDevice.getRemoteDevice(instaceId );
              RemoteDevice d = dd.get();
              The bug what I got seems being resolved with getRemoteDevice() of Bacnet4J 4.X.
              thank you.

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