• W
    Wojciech Czernoch

    I have program running about 2 weeks, im using BACnet4J as a gateway to PIV object (mapping PIV to MV) and i haven't problem, every think was ok. But on few days I have problem because the remote device list in DEV object is empty and my MV don't change PIV value, when I manually restart te program, remote device is visible in DEV object in remote device list. I adding remote device like this:

                localDevice.initialize();
                localDevice.sendGlobalBroadcast(localDevice.getIAm());
                localDevice.sendGlobalBroadcast(new WhoIsRequest());
    
    
                localDevice.getRemoteDeviceBlocking(200);
    
                List<RemoteDevice> remoteDevices = localDevice.getRemoteDevices();
    
                for (RemoteDevice device : remoteDevices) {
    
                   //some code
                 
                }
    

    200 is instance of remote device

    I adding this after I initialising local device (in the same try/catch) Whats going on? Any ideas?

    posted in BACnet4J general discussion read more