통신 연결 해제 UI 기능 수정
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user