Gemalto is now part of the Thales Group, find out more.

You are here

EHS5: WebSocket: link to the server | Thales IoT Developer Community

mt's picture
mt

June 25, 2019 - 12:29pm, 2164 views

Hello all,

I have to implement OCPP1.6-JSON with websockets on EHS. I have a j2me websocket library.

I can not create a connection to the server because of the link.

When running on pc, the link is:   

ws://mydomain.co:myport/steve/websocket/CentralSystemService/RO*LEK*E000001

When running on EHS, the link can not start with ws.

If I use:

socket://mydomain.co:myport/steve/websocket/CentralSystemService/RO*LEK*E000001

I receive: java.lang.IllegalArgumentException : Malformed address.

If I use:

socket://mydomain.co:myport

a connection is created, no exception is thrown, but the connection is not to the server.

What should be the correct link to my server ?

Thank you for your time.

Best Regards,

Mihaela