Skip to content

Commit

Permalink
Update FB_OUTPUT_DIMMER_MQTT.md
Browse files Browse the repository at this point in the history
Fixed variable pointers
  • Loading branch information
mchlrv authored Jan 20, 2024
1 parent f42b2b6 commit d33eae2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/FunctionBlocks/FB_OUTPUT_DIMMER_MQTT.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ FB_AO_DIMMER_001 :FB_OUTPUT_DIMMER_MQTT;

- Init MQTT method call (called once during startup):
```
FB_AO_DIMMER_001.InitMQTT(MQTTPublishPrefix:= ADR(MqttPubDimmerPrefix), (* pointer to string prefix for the MQTT publish topic *)
MQTTSubscribePrefix:= ADR(MqttSubDimmerPrefix), (* pointer to string prefix for the MQTT subscribe topic *)
FB_AO_DIMMER_001.InitMQTT(MQTTPublishPrefix:= ADR(MqttVariables.MqttPubDimmerPrefix), (* pointer to string prefix for the MQTT publish topic *)
MQTTSubscribePrefix:= ADR(MqttVariables.MqttSubDimmerPrefix), (* pointer to string prefix for the MQTT subscribe topic *)
pMQTTPublishQueue := ADR(MQTTVariables.fbMQTTPublishQueue), (* pointer to MQTTPublishQueue to send a new MQTT event *)
pMqttCallbackCollector := ADR(MqttVariables.collector_FB_DIMMER_MQTT), (* pointer to CallbackCollector to receive Mqtt subscription events *)
TRUE, (* specify whether dimmer value should be outputted on MQTT topic *)
SD_MQTT.QoS.ExactlyOnce, (* specify the QoS for the dimmer mqtt events (values 0-255) *)
MQTT.QoS.ExactlyOnce, (* specify the QoS for the dimmer mqtt events (values 0-255) *)
5 (* specify the resolution for the dimmer mqtt events *)
);
```
Expand Down

0 comments on commit d33eae2

Please sign in to comment.