yanko 1年前
父节点
当前提交
ee4104d923
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      backend/BPA.MES.Base.Application/MQTT/MQTTService.cs

+ 1
- 1
backend/BPA.MES.Base.Application/MQTT/MQTTService.cs 查看文件

@@ -54,7 +54,7 @@ namespace BPA.MES.Base.Application
MessageLen = JSON.Serialize(input.Payload).Length
};
//组装MQTT消息
var tem = await $"http://{mqttentity.Address}/api/v5/publish".SetHeaders(new
var tem = await $"http://{mqttentity.Address}{mqttentity.MsgPublishRoute}".SetHeaders(new
{
Authorization = "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes($"{mqttentity.Account}:{mqttentity.Pwd}"))
}).SetBody(new


正在加载...
取消
保存