To unregister Optic as a Foreign Device and revert it to Normal mode, use the bacnetUnregisterForeignDeviceWithNetworkPort query. This query will also restart Optic.
Example: bacnetUnregisterForeignDeviceWithNetworkPort()
bacnetUnregisterForeignDeviceWithNetworkPort()
Unregister Optic as a FD and restart the stack. The default parameter is TRUE.
bacnetUnregisterForeignDeviceWithNetworkPort(false)
To unregister Optic as a FD without restarting Optic, set the parameter to FALSE in the query. You can then run the bacnetApplyNetworkPortPendingChanges() Folio query to apply the changes. However, since the stack must be restarted for the changes to take effect, it is recommended to run bacnetUnregisterForeignDeviceWithNetworkPort() without the FALSE parameter.