Immediate device parameter change with Python SDK

I’m developing an app where I primarily use resin for easy configuration.

Whenever a device service variable is modified at resin.io, the container is restarted with the updated variable immediately. How do I get the same behaviour using the Python SDK? I am able to update the variable such that the update is visible on resin.io but cannot seem to force the device to load the parameters immediately.

Hi,

Can you provide a minimal example of how you set the environment variables using the Python SDK, and also mention the python SDK version you are using?

Sorry for the late reply. Things have been quite busy.

Resin python SDK version: 4.7.1

resin = Resin()
resin.auth.login_with_token(token)
resin.models.environment_variables.device_service_environment_variable.update(input_variable_id, value_string)

The parameter is now updated to value_string in the dashboard but not synced to the device.