|
|
@@ -92,7 +92,7 @@ namespace WeApp.CommonManager.MqttClient
|
|
|
AppId = ClientId,
|
|
|
Name = "智慧演练系统",
|
|
|
SecretKey = "WePlatformWeApp",
|
|
|
- ServerIp = "shvber.com",
|
|
|
+ ServerIp = "localhost",
|
|
|
ServerPort = 1885,
|
|
|
};
|
|
|
#else
|
|
|
@@ -105,23 +105,6 @@ namespace WeApp.CommonManager.MqttClient
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
- //var result = new MsgClientDto()
|
|
|
- //{
|
|
|
- // Name = "智慧演练系统",
|
|
|
- // AppId = "WeApp",
|
|
|
- // SecretKey = "WePlatformWeApp",
|
|
|
- // ServerIp = "shvber.com",
|
|
|
- // ServerPort = 1885
|
|
|
- //};
|
|
|
- //var result = new MsgClientDto()
|
|
|
- //{
|
|
|
- // Name = "admin",
|
|
|
- // AppId = "WeApp",
|
|
|
- // SecretKey = "admin123456",
|
|
|
- // ServerIp = "shvber.com",
|
|
|
- // ServerPort = 1883
|
|
|
- //};
|
|
|
-
|
|
|
Client.SetOptions(result.ServerIp, result.ServerPort, ClientId, result.Name, result.SecretKey);
|
|
|
Client.SetReceivedHandler(ReceivedHandler);
|
|
|
Subscribe();
|