562935844@qq.com
2023-08-31 fdcf461fbfa3bcd650685743e891ad3357898f0c
HDLSDK/hdl-connect/src/main/java/com/hdl/sdk/connect/socket/HDLSocket.java
@@ -1,5 +1,7 @@
package com.hdl.sdk.connect.socket;
import static com.hdl.sdk.connect.config.HDLLinkConfig.AUTHENTICATE_IS_DEVICEINFO_KEY;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
@@ -130,6 +132,10 @@
                                if (!TextUtils.isEmpty(data)) {
                                    DeviceInfoResponse response = GsonConvert.getGson().fromJson(data, new TypeToken<DeviceInfoResponse>() {
                                    }.getType());
                                    if ((response == null) || (response.getObjects() == null) || (response.getObjects().getIPAddress() == null))
                                        return;
                                    HDLLinkConfig.getInstance().setIpAddress(response.getObjects().getIPAddress());
                                    LogUtils.i("---getIpAddress=" + HDLLinkConfig.getInstance().getIpAddress());
@@ -1011,7 +1017,7 @@
                threadPool.scheduleWithFixedDelay(new Runnable() {
                    @Override
                    public void run() {
                        if (sendCount.get() < 3) {
                        if (sendCount.get() < 0) {
                            sendCount.set(sendCount.get() + 1);
                            getTcp().sendMsg(data);
                        } else {