Change mqtt 'update_period' variable