Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
27383f62
Commit
27383f62
authored
Jun 26, 2023
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.主题订阅机制-不能使用原始的sub,需要使用emqkeeper的包装后的
parent
f340d06b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
AmosTzsApplication.java
...iz/src/main/java/com/yeejoin/amos/AmosTzsApplication.java
+7
-7
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/AmosTzsApplication.java
View file @
27383f62
...
@@ -102,13 +102,13 @@ public class AmosTzsApplication {
...
@@ -102,13 +102,13 @@ public class AmosTzsApplication {
* @throws MqttException
* @throws MqttException
*/
*/
@Bean
@Bean
public
void
initMqtt
()
throws
Mqtt
Exception
{
public
void
initMqtt
()
throws
Exception
{
emqKeeper
.
getMqttClient
().
subscribe
(
"/idx/idx_biz_carcyl_unit_inspect"
,
1
,
carcylUnitInspectMqTtlListener
);
emqKeeper
.
subscript
(
"/idx/idx_biz_carcyl_unit_inspect"
,
2
,
carcylUnitInspectMqTtlListener
);
emqKeeper
.
getMqttClient
().
subscribe
(
"/tm/tz_base_enterprise_info"
,
1
,
baseEnterpriseMqTtlListener
);
emqKeeper
.
subscript
(
"/tm/tz_base_enterprise_info"
,
2
,
baseEnterpriseMqTtlListener
);
emqKeeper
.
getMqttClient
().
subscribe
(
"/tz/privilege_company_add_update"
,
1
,
privilegeCompanyUpdateAddListener
);
emqKeeper
.
subscript
(
"/tz/privilege_company_add_update"
,
2
,
privilegeCompanyUpdateAddListener
);
emqKeeper
.
getMqttClient
().
subscribe
(
"/tz/privilege_company_delete"
,
1
,
privilegeCompanyDeleteListener
);
emqKeeper
.
subscript
(
"/tz/privilege_company_delete"
,
2
,
privilegeCompanyDeleteListener
);
emqKeeper
.
getMqttClient
().
subscribe
(
"/tzs/sync/fillingRecord"
,
1
,
fillingRecordSyncListener
);
emqKeeper
.
subscript
(
"/tzs/sync/fillingRecord"
,
2
,
fillingRecordSyncListener
);
emqKeeper
.
getMqttClient
().
subscribe
(
"tzs/oneCodePass/deviceSave"
,
0
,
amosMqTtlListener
);
emqKeeper
.
subscript
(
"tzs/oneCodePass/deviceSave"
,
2
,
amosMqTtlListener
);
// emqKeeper.getMqttClient().subscribe("topic_mqtt_exam", 1, examMqTtlListener);
// emqKeeper.getMqttClient().subscribe("topic_mqtt_exam", 1, examMqTtlListener);
// emqKeeper.getMqttClient().subscribe("topic_mqtt_exam_record", 1, examMqTtRecordListener);
// emqKeeper.getMqttClient().subscribe("topic_mqtt_exam_record", 1, examMqTtRecordListener);
}
}
...
...
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