|
@@ -32,7 +32,7 @@ public class KafkaConsumerEdge2Cloud {
|
|
|
try {
|
|
|
if (message.isPresent()) {
|
|
|
String msg = message.get();
|
|
|
- log.info("topic iot.edge2collect------消费了: Topic:" + topic + ",Message:" + msg);
|
|
|
+ log.info("topic iot.edge2collect------消费了: Topic:" + topic + ",Message:" + msg + ",Offset:" + record.offset());
|
|
|
PacketEntity packetEntity = JSONObject.parseObject(msg, PacketEntity.class);
|
|
|
IClientManager clientManager = IotClient.CLIENT_PROJECT_2_COLLECT_MANAGER_MAP.get(packetEntity.getProjectId());
|
|
|
clientManager.AppendToSend(packetEntity.content);
|
|
@@ -49,7 +49,7 @@ public class KafkaConsumerEdge2Cloud {
|
|
|
try {
|
|
|
if (message.isPresent()) {
|
|
|
String msg = message.get();
|
|
|
- log.info("topic iot.edge2control------消费了: Topic:" + topic + ",Message:" + msg);
|
|
|
+ log.info("topic iot.edge2control------消费了: Topic:" + topic + ",Message:" + msg+ ",Offset:" + record.offset());
|
|
|
PacketEntity packetEntity = JSONObject.parseObject(msg, PacketEntity.class);
|
|
|
IClientManager clientManager = IotClient.CLIENT_PROJECT_2_CONTROL_MANAGER_MAP.get(packetEntity.getProjectId());
|
|
|
if (clientManager != null) {
|