Below is how to register FIN as a Foreign Device.
The parameters are:
ipPort: The ip address and port number separated by ':'. If Port number is not provided, 47808 is assigned as default port number. It is the ip and port number of BBMD which accepts the request of the device and make its entry in the FDT (Foreign Device Table) and register the connector as a Foreign device.
fdRegTimeout: Timeout for foreign Device Registration(seconds)
timeToLive: The time for which the device is registered as Foreign device in the subnet. Note that the time provided is then added with 30 seconds(grace time). After this time, the BBMD flushes the entry of Foreign device from the FDT.
fdRegRetries: Foreign device registration retry count.
Examples: bacnetRegisterAsForeignDevice("192.168.253.136:47808",1,1800sec,2min) bacnetRegisterAsForeignDevice("192.168.253.136",1,1800sec,120sec) bacnetRegisterAsForeignDevice("192.168.253.136",1,1800sec,120sec,3) |
To unregister a Foreign Device, run this bacnetUnRegisterForeignDevice() function via Folio and that’s it.