-
Notifications
You must be signed in to change notification settings - Fork 34
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
Timeout trying to connect to arm mbed remote server #3
Comments
There is nothing running on port |
Thanks for the reply. |
At the moment only TLS. |
`CoapClient client = null;
We tried using this code piece with the port number as 5684. We got CoapTimeOutException. Could you please let us know why the problem happens? |
In your example, it is trying to connect with plain text. |
Thanks for the support! We tried with this code: But got the following exception: java.net.ConnectException: Connection timed out: connect While creating the client. Please help. |
Note the port, it should be |
Yes, we have tried it with 5684 too. |
When you use correct address and port:
You should get error: Next step is to create keystore from https://connector.mbed.com/#credentials and use this keystore to connect with mbed connector. |
Could you please share a reference link on how to create keystore from https://connector.mbed.com/#credentials ? |
I created example client application, that uses keystore to register with mbed cloud. There is also instruction on how to create keystore: |
Thanks for the help again! |
OK, there was formatting issue in readme file, try again:
|
You need to leave |
I could create the keystore successfully, but got this error |
Did you get it when running example-client from your PC? ( |
I tried directly in the Android application created using Android Studio. |
Can you verify that it works from PC? |
Okay |
For Android, you might need to convert keystore type from JKS to BKS. You can do it with Keystore explorer: http://keystore-explorer.org. |
Trying to register we got the following error |
We tried with: Please help. |
|
I got the exception No connection with api.connector.mbed.com/169.45.82.18:5684 while trying to register. |
Can you be more specific, what exact exception, how did you run it? |
While registering, when debugging the sendPacket method in SSLSocketClientTransport class the following method gets called: Should we be using .equals ? |
Yes it should, and it is fixed. You need to pull for latest changes. |
How will we know that we have registered a device successfully to mbed connector? We checked for connected devices in https://connector.mbed.com/#endpoints but could not find our device end point name. Is register enough or should we do something else? |
Good question. In the logs you should see response like |
Actually even though we could write to output stream, no callbacks are made to the register method in RegisterManager class. |
Can you please, try first to use example client to register? Lets see if that works for you. |
Yes, we tried with the example client Java application. In that also we are not receiving any acknowledgement for register. Also, no exceptions are present. We used the same jks file and end point name as was used for the remote server. |
Can you show logs? |
In the mbed portal, the end point name is now shown in connected devices. How can we know whether it is the Android app or the Java application which was the reason for the change? How to remove the registered device from the portal? |
You need to check logs and see if your android app gets |
Thanks szysas, we are able to see the endpoint name as active and the resources in the mbed portal console using Android application. |
How do we update the LWM2M server about a change in some sensor value, for example temperature value obtained from device sensors, in the form of endpoints and resources? |
Could you make a new ticket for you last question, and close this one? |
We tried to connect to remote server api.connector.mbed.com port 5694 but the connection was not happening and timeout exception was given with token also provided.
We tried in a Copper add-on for firefox, still the same timeout issue happens.
Is the server up and running? Please help.
The text was updated successfully, but these errors were encountered: