Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李苗
/
Vion-DevOps
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 613ae9cc
authored
Nov 01, 2024
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
2 parents
fd4c8cb2
c04bd3eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/java/vion/event/mqtt/MqttClientMessageListener.java
src/main/java/vion/event/mqtt/MqttClientMessageListener.java
View file @
613ae9c
...
@@ -106,6 +106,7 @@ public class MqttClientMessageListener implements IMqttClientMessageListener {
...
@@ -106,6 +106,7 @@ public class MqttClientMessageListener implements IMqttClientMessageListener {
for
(
RAgentEvent
agentEvent
:
list
)
{
for
(
RAgentEvent
agentEvent
:
list
)
{
client
.
publish
(
StrUtil
.
format
(
"/SA/{}/event/push"
,
agentUid
),
JsonUtil
.
toJsonByte
(
agentEvent
),
MqttQoS
.
QOS2
);
client
.
publish
(
StrUtil
.
format
(
"/SA/{}/event/push"
,
agentUid
),
JsonUtil
.
toJsonByte
(
agentEvent
),
MqttQoS
.
QOS2
);
}
}
logger
.
info
(
"agent:{} 结束下发事件监测"
,
agentUid
);
}
}
//设备离线上报
//设备离线上报
...
@@ -147,6 +148,7 @@ public class MqttClientMessageListener implements IMqttClientMessageListener {
...
@@ -147,6 +148,7 @@ public class MqttClientMessageListener implements IMqttClientMessageListener {
//全天分析异常上报
//全天分析异常上报
private
void
handleWholeDayAnalyze
(
String
payloadStr
)
{
private
void
handleWholeDayAnalyze
(
String
payloadStr
)
{
EventRecord
eventRecord
=
JsonUtil
.
parseObject
(
payloadStr
,
EventRecord
.
class
);
EventRecord
eventRecord
=
JsonUtil
.
parseObject
(
payloadStr
,
EventRecord
.
class
);
recordService
.
save
(
eventRecord
);
}
}
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment