Added JSON pwm updating