Updating device's password in v2


I have programmed sprinkler system, door sensor and led strip control. Then I’ve updated the firmware V2 on them. I was wondering what if i change my WiFi’s password. How am I suppose to update the password to the incorporated devices that I’ve already set up with old password?