How can I create a customized event on BVMS Server new start?
Question
How can I create a customized event on BVMS Server new start?
Answer
BVMS does not provide a dedicated system event that signals when the Management Server (MS) has started.
However, this behavior can be handled by using a Server Script. Each time the BVMS MS starts, whether after a crash, restart, or configuration activation, the ServerScript(IServerApi api) is automatically initialized. This initialization can be used as an implicit “server started” event.
In the provided example below, a log entry is written to the ServerScript.log, and Virtual Input 99 is switched on during server startup. The event Virtual Input 99 on, in this case corresponds to the event MS service started.
