From ee4104d92323bdc40e4945bfa4c89e4f4af51e6f Mon Sep 17 00:00:00 2001 From: yanko <747575620@qq.com> Date: Fri, 17 Nov 2023 10:08:11 +0800 Subject: [PATCH] 1 --- backend/BPA.MES.Base.Application/MQTT/MQTTService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/BPA.MES.Base.Application/MQTT/MQTTService.cs b/backend/BPA.MES.Base.Application/MQTT/MQTTService.cs index 9bd2368..0f8776b 100644 --- a/backend/BPA.MES.Base.Application/MQTT/MQTTService.cs +++ b/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