package com.yeejoin.equipmanage.service;

import org.springframework.integration.annotation.MessagingGateway;
import org.springframework.integration.mqtt.support.MqttHeaders;
import org.springframework.messaging.handler.annotation.Header;

/**
 * @author keyong
 * @title: MqttSendGateway
 * <pre>
 * @description: TODO
 * </pre>
 * @date 2020/11/6 10:54
 */
@MessagingGateway(defaultRequestChannel = "mqttOutboundChannel")
public interface MqttSendGateway {
    void sendToMqtt(@Header(MqttHeaders.TOPIC) String topic, String data);
}
