Table of Contents

mqtt_publish

WMPRO, WMMINI FW >= 1.1074 WMMEGA FW >= 2.1078

Publish a message to an MQTT channel

Description

mqtt_publish ( string $channel, string $content )

Parameters

$channel: Channel to publish to. See MQTT Configuration

$content: Message content to publish

Return Values

1 if successful and 0 on failure

See Also

mqtt_subscribe() - Subscribe to an MQTT channel