refactor(mqtt): 更新本地环境URL并添加送货单打印topic
更新本地环境注释中的IP地址,并添加送货单打印相关的topic定义
This commit is contained in:
@@ -4,7 +4,7 @@ export const title = 'shgg_mes'
|
||||
// 云服务器环境
|
||||
// const url = 'wss://ff6bab7a.ala.cn-hangzhou.emqxsl.cn:8084/mqtt';
|
||||
// 本地环境
|
||||
//const url = 'ws://192.168.23.165:8083/mqtt'
|
||||
// const url = 'ws://192.168.1.52:8083/mqtt'
|
||||
// 线上环境
|
||||
const url = 'ws://192.168.60.251:8083/mqtt'
|
||||
// 创建客户端实例
|
||||
@@ -61,6 +61,13 @@ export const BackEndTopic = {
|
||||
SiteLabelPrint: title + '/backEnd/print',
|
||||
}
|
||||
|
||||
// 送货单打印-topic
|
||||
export const DeliveryNoteTopic = {
|
||||
// 送货单标签打印
|
||||
DeliveryNotePrint: title + '/package_print_1/print/1站点',
|
||||
}
|
||||
|
||||
|
||||
export function createClient(clientId = null) {
|
||||
let _options = options
|
||||
if (clientId !== null) {
|
||||
|
||||
Reference in New Issue
Block a user