|
@@ -11,7 +11,7 @@ public class MQTTClient : MonoSingleton<MQTTClient>
|
|
|
{
|
|
|
string front = "client/";
|
|
|
string id = "";
|
|
|
- string username = "u@unity1";
|
|
|
+ string username = "u@unity3";
|
|
|
string password = null;
|
|
|
string rid = "mqttx_b4c02ddc";
|
|
|
QTTManager qt;
|
|
@@ -98,10 +98,16 @@ public class MQTTClient : MonoSingleton<MQTTClient>
|
|
|
DisConnect();
|
|
|
}
|
|
|
|
|
|
+ public void SetUserName(string username)
|
|
|
+ {
|
|
|
+ if (username != null)
|
|
|
+ this.username = username;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
public void Connect()
|
|
|
{
|
|
|
+ Debug.Log("DGJ ===> MQTT Connect ");
|
|
|
if (DeviceType.type == "Phone")
|
|
|
{
|
|
|
id =UserInfo.Instance.Account + "_Phone";
|