Commit c48cc6c7 authored by 赵啸非's avatar 赵啸非

添加前端页面

parent bd200ded
......@@ -28,6 +28,7 @@ public class MessageHeader {
* 消息类型
*/
public static final String MESSAGETYPE = "messageType";
public static final String DEVICECODE = "deviceCode";
/**
* topic
*/
......
......@@ -448,6 +448,7 @@ public class DeviceApiController {
TopicPartitionInfo info = TopicPartitionInfo.builder().exchangeName(exchangeName).topic(Constant.UPLOAD_TOPIC + deviceEntity.getDeviceCode()).build();
TbQueueMsgHeaders header = new DefaultTbQueueMsgHeaders();
header.put(MessageHeader.MESSAGETYPE, Constant.MESSAGETYPE_HEARTBEAT);
header.put(MessageHeader.DEVICECODE, deviceEntity.getDeviceCode());
for (int i = 0; i < 10; i++) {
deviceService.sendDeviceMessage(deviceEntity, info, header, JSON.toJSONString(req), null);
// Thread.sleep(50);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment