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

  • Hello!
    I am developing an application with BACnet4J library. First of all, I am able capable of reading properties from a device. However, I would like to discover devices connected in the same network. That is to say, I do not know IP/port from other BACnet devices, but I really know that they exist. I am playing with ObjectType.device and PropertyIdentifier. I have included in my code the following lines:

    
    lDevice.sendBroadcast(1476, null, new WhoIsRequest());
    Thread.sleep(5000);
    for (RemoteDevice d : lDevice.getRemoteDevices()) {
    	lDevice.getExtendedDeviceInformation(d);
    	List<ObjectIdentifier> oids = ((SequenceOf<ObjectIdentifier>) 
                     lDevice.sendReadPropertyAllowNull(d, d.getObjectIdentifier(),PropertyIdentifier.objectList)).getValues();
        PropertyReferences refs = new PropertyReferences();
    	for (ObjectIdentifier oid : oids)
    	     addPropertyReferences(refs, oid);
                 PropertyValues pvs = lDevice.readProperties(d, refs);
    	     // pvs.
    	     System.out.println(pvs);
    	     System.out.println(d);
            }
    }
    

    Someone could help me, please.
    Thank you very much!
    Kind regards!