통신 연결 해제 UI 기능 수정

This commit is contained in:
정영민
2025-04-16 15:34:14 +09:00
parent b640a1c458
commit 7bd5783c52
12 changed files with 23574 additions and 428 deletions

View File

@@ -39,6 +39,7 @@ public class MQTT : Protocol, ISingle, IOptionable
{
Disconnect();
errorMessage = ". . .";
int.TryParse(port, out portData);
subscriptionTopics = topics.Split(",");
@@ -107,7 +108,7 @@ public class MQTT : Protocol, ISingle, IOptionable
onConnectedEvent?.Invoke(client);
isSuccess = true;
errorMessage = client.State.ToString();
errorMessage = "Connected";
//client.createapplicationmessagebuilder("best_mqtt/test_topic")
// .withpayload("hello mqtt world!")
@@ -248,7 +249,7 @@ public class MQTT : Protocol, ISingle, IOptionable
private void OnError(MQTTClient client, string error)
{
isSuccess = false;
errorMessage = client.State.ToString();
errorMessage = "UnConnected";
//Debug.Log($"OnError! :{error}");
onErrorEvent?.Invoke(client, error);
//throw new NotImplementedException();