Another query you can use to restart Optic is the client restart query. This query provides an additional feature: if you explicitly pass TRUE in the query, it restarts Optic with the old configuration, i.e., the configuration from the last successful restart of Optic. This can be used instead of the bacnetApplyNetworkPortPendingChanges() query.

Example: bacnetClientRestart()

bacnetClientRestart()
Restart the client with the current configuration, which may include changes that have not yet been applied to Optic, i.e., changes that are pending.

bacnetClientRestart(true)
Restart the client from the last successful configuration, which will exclude any current changes that have not yet been applied to Optic.