Skip to main content

Consultation on the Issue of NX Configuration Overriding Camera Configuration

Planned

Comments

1 comment

  • Andrey Terentyev
    • Network Optix team

    Hello,

    First of all, it has to be mentioned there are two settingsReicieved() methods: one in the Engine and one in the ComsumingDeviceAgent.
    Could you please elaborate, which of them do you mean?

    The Metadata SDK doc states the following

    Called when the settings are received from the server (even if the values are not changed). Should perform any required (re)initialization. Called even if the settings model is empty.

    Taking that into account, what you're describing seems to be an expected behavior. There is no issue.

    That means, the method will be invoked every time the Server reads the settings from the database and passed it to a DeviceAgent instance or Engine instance and every time settings are passed to the Server from the GUI, when OK or Apply button is pressed in the plugin settings windows.

    That implies, a DeviceAgent instance is created (i.e. a plugin is active on a camera). If it's not active there is no DeviceAgent and the method won't be invoked.

    That said, I would suppose your phrase “When the plugin is first opened” means when plugin is enabled and OK/Apply button is pressed in the plugin setting window in the GUI.

    It's up to the plugin developer to override the default settingsReicieved() method, which returns nullptr, and implement it to handle all the scenarios needed in the specific solution. 

    0

Please sign in to leave a comment.