package com.ruoyi.system.forward.mq;

import org.springframework.integration.annotation.MessagingGateway;
import org.springframework.messaging.handler.annotation.Header;
import org.springframework.messaging.handler.annotation.Payload;

@MessagingGateway(defaultRequestChannel = "mqttOutboundChannel")
public interface MqttProducerGateway {
    void sendToMqtt(@Header("mqtt_topic") String topic, @Payload String data);
}