Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect with MQTT Broker #2

Open
kavidriod opened this issue Mar 28, 2020 · 0 comments
Open

Unable to connect with MQTT Broker #2

kavidriod opened this issue Mar 28, 2020 · 0 comments

Comments

@kavidriod
Copy link

kavidriod commented Mar 28, 2020

2020-03-28 10:15:09.510 10325-10325/com.example.hellomqtt D/MQTT: Build.VERSION.SDK_INT  27
2020-03-28 10:15:09.526 10325-10325/com.example.hellomqtt D/MQTT: Created mqtt service...
2020-03-28 10:15:09.529 10325-10325/com.example.hellomqtt D/MQTT: SensorsMqtService.onStartCommand.getAction mqtt_connect
2020-03-28 10:15:09.529 10325-10325/com.example.hellomqtt D/MQTT: SensorsMqtService.connectToServer 
2020-03-28 10:15:09.530 10325-10325/com.example.hellomqtt D/MQTT: Client: serverURI tcp://broker.mqttdashboard.com:1883
2020-03-28 10:15:09.530 10325-10325/com.example.hellomqtt D/MQTT: Client: clientId EMULATOR29X3X4X0
2020-03-28 10:15:09.530 10325-10325/com.example.hellomqtt D/MQTT: SensorsMqtService.connectToServer.mqttClient com.example.hellomqtt.mqtt.CustomMqttClient@4803a82
2020-03-28 10:15:09.605 10325-10348/com.example.hellomqtt I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-03-28 10:15:09.605 10325-10348/com.example.hellomqtt I/OpenGLRenderer: Initialized EGL, version 1.4
2020-03-28 10:15:09.605 10325-10348/com.example.hellomqtt D/OpenGLRenderer: Swap behavior 1
2020-03-28 10:15:09.605 10325-10348/com.example.hellomqtt W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2020-03-28 10:15:09.605 10325-10348/com.example.hellomqtt D/OpenGLRenderer: Swap behavior 0
2020-03-28 10:15:09.614 10325-10348/com.example.hellomqtt D/EGL_emulation: eglCreateContext: 0xa0a95f20: maj 3 min 0 rcv 3
2020-03-28 10:15:09.655 10325-10348/com.example.hellomqtt D/EGL_emulation: eglMakeCurrent: 0xa0a95f20: ver 3 0 (tinfo 0x9e1bf8b0)
2020-03-28 10:15:09.744 10325-10348/com.example.hellomqtt D/EGL_emulation: eglMakeCurrent: 0xa0a95f20: ver 3 0 (tinfo 0x9e1bf8b0)
2020-03-28 10:15:09.938 10325-10325/com.example.hellomqtt D/MQTT: traceDebug clearArrivedMessages: clearing the table of tcp://broker.mqttdashboard.com:1883:EMULATOR29X3X4X0:com.example.hellomqtt messages
2020-03-28 10:15:09.938 10325-10325/com.example.hellomqtt D/MQTT: traceDebug clearArrivedMessages: rows affected = 0
2020-03-28 10:15:09.939 10325-10325/com.example.hellomqtt D/MQTT: traceDebug Connecting {tcp://broker.mqttdashboard.com:1883} as {EMULATOR29X3X4X0}
2020-03-28 10:15:09.939 10325-10325/com.example.hellomqtt D/MQTT: traceDebug Do Real connect!
2020-03-28 10:15:09.939 10325-10325/com.example.hellomqtt D/MQTT: traceDebug Internal network status receive.
2020-03-28 10:15:09.939 10325-10325/com.example.hellomqtt D/MQTT: traceDebug Reconnect for Network recovery.
2020-03-28 10:15:09.939 10325-10325/com.example.hellomqtt D/MQTT: traceDebug Online,reconnect.
2020-03-28 10:15:09.939 10325-10325/com.example.hellomqtt D/MQTT: traceDebug Reconnect to server, client size=1
2020-03-28 10:15:09.939 10325-10325/com.example.hellomqtt D/MQTT: traceDebug EMULATOR29X3X4X0/tcp://broker.mqttdashboard.com:1883
2020-03-28 10:15:09.939 10325-10325/com.example.hellomqtt D/MQTT: traceDebug The client is connecting. Reconnect return directly.
2020-03-28 10:15:21.447 10325-10353/com.example.hellomqtt D/AlarmPingSender: Unregister alarmreceiver to MqttServiceEMULATOR29X3X4X0
2020-03-28 10:15:32.409 10325-10353/com.example.hellomqtt D/AlarmPingSender: Unregister alarmreceiver to MqttServiceEMULATOR29X3X4X0
2020-03-28 10:15:32.463 10325-10325/com.example.hellomqtt D/MQTT: traceError connect fail, call connect to reconnect.reason:Unable to connect to server
2020-03-28 10:15:32.465 10325-10325/com.example.hellomqtt W/MQTT: Error on connecting to server... retry?: Unable to connect to server (32103) - java.net.ConnectException: failed to connect to broker.mqttdashboard.com/18.184.201.114 (port 1883) from /192.168.232.2 (port 46408) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)
2020-03-28 10:15:32.469 10325-10325/com.example.hellomqtt D/MQTT: traceDebug disconnect()
2020-03-28 10:15:32.469 10325-10325/com.example.hellomqtt D/MQTT: traceError not connected
2020-03-28 10:15:32.469 10325-10325/com.example.hellomqtt D/MQTT: Disconnected from server attempt success...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant