unicontrol > Web interface > Processes > Output > Duty cycle
POST: http://192.168.1.255/var_set?param=outval2_1&val=50
will set the output Duty cycle on Process #1 to
Duty cycle
Determines the PWM Duty cycle of an output.
Only available if a PWM capable output (D0 - D8) is selected as an Output.
This variable can assume any [VALUE] between 0 and 100.
HTTP
The device will accept HTTP requests at the following URLs:
(POST) http://[IPv4]/var_set?param=outval2_[PROCESS ID]&val=[VALUE]
(GET) http://[IPv4]/var_request?param=outval2_[PROCESS ID]
POST: http://192.168.1.255/var_set?param=outval2_1&val=50
will set the output Duty cycle on Process #1 to
50%.
Learn more in HTTP API.
MQTT
This parameter can also be accessed via MQTT using [PARAMETER] = outval2. Learn more in MQTT API.
Following two messages:
Topic: johndoe5896/home/garagedoor/sub/process_1/outval2
Payload: 50
will set the output Duty cycle on Process #1 to
Topic: johndoe5896/home/garagedoor/sub/process_1/outval2
Payload: 50
will set the output Duty cycle on Process #1 to
50%.

