Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
terminal-protocol-proxy-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fox-energy
backend
terminal-protocol-proxy-service
Commits
e80a7767
Commit
e80a7767
authored
Feb 07, 2023
by
xieshaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
b8278465
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
MqttCommandPush.java
...va/vc/thinker/absctacts/mqtt/publish/MqttCommandPush.java
+2
-2
ThinkerProdProtocolClient.java
...hinker/mqtt/forwardthinker/ThinkerProdProtocolClient.java
+1
-1
No files found.
src/main/java/vc/thinker/absctacts/mqtt/publish/MqttCommandPush.java
View file @
e80a7767
...
...
@@ -47,9 +47,9 @@ public class MqttCommandPush {
mqttClient
.
publish
(
topic
,
message
);
}
}
catch
(
MqttException
e
)
{
if
(
Objects
.
equals
((
int
)
MqttException
.
REASON_CODE_CLIENT_EXCEPTION
,
e
.
getReasonCode
())
||
Objects
.
equals
((
int
)
MqttException
.
REASON_CODE_CLIENT_ALREADY_DISCONNECTED
,
e
.
getReasonCode
())
if
(
Objects
.
equals
((
int
)
MqttException
.
REASON_CODE_CLIENT_ALREADY_DISCONNECTED
,
e
.
getReasonCode
())
||
Objects
.
equals
((
int
)
MqttException
.
REASON_CODE_CLIENT_NOT_CONNECTED
,
e
.
getReasonCode
())
||
Objects
.
equals
((
int
)
MqttException
.
REASON_CODE_CONNECTION_LOST
,
e
.
getReasonCode
())
){
ArrayBlockingQueue
<
DataReportArrayQueue
>
queue
=
DataReportQueueUtil
.
getArrayBlockingQueue
();
DataReportArrayQueue
obj
=
new
DataReportArrayQueue
();
...
...
src/main/java/vc/thinker/mqtt/forwardthinker/ThinkerProdProtocolClient.java
View file @
e80a7767
...
...
@@ -6,9 +6,9 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnBean
;
import
org.springframework.stereotype.Component
;
import
vc.thinker.absctacts.mqtt.protocol.AbstractNotSubscriptionMqttProtocol
;
import
vc.thinker.mqtt.config.ThinkerMqttConnectionProperties
;
import
vc.thinker.mqtt.forwardthinker.dto.ThinkerReportDTO
;
import
vc.thinker.mqtt.forwardthinker.enums.FoxGatewayTopicDefinition
;
import
vc.thinker.mqtt.config.ThinkerMqttConnectionProperties
;
import
java.util.List
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment