Reputation: 3
I am developing a project based on the Google Cloud IoT Core platform
. I want to publish telemetry data using the GSM module (SIM7020 - NB-IoT).
However, the connection time (TLS handshake)
takes a lot of time (> 10 seconds) and the connection is broken by the Google server.
What is the timeout handshake?
Can I extend this timeout in IoT Core settings
?. Anyone have an idea how to work around this problem with slow connections?
best regards
Upvotes: 0
Views: 1865
Reputation: 3
After talking to Google support, it turned out that the only solution was to run your own virtual machine or use CoAP and communication over UDP. I decided to change cloud hosting to competitive.
Upvotes: 0
Reputation: 849
If your bound to UDP, you may try out cloud-iot-coap-proxy. A DTLS PSK handshake, if that complies to your security requirements, is much faster.
Upvotes: 0
Reputation: 529
You use SSL/TLS to establish a secure connection between the 2 points. To achieve this connection you need to complete a successful handshake between these points. If this handshake fails for example in your scenario because of timeout then the SSL/TLS couldn’t complete the handshake during this period. You can find more information about SSl/TLS from the organization Internet Engineering Task Force (ietf). Handshake from ietf, timeout from ietf.
For your information SSL/TLS is for TCP and DTLS for UDP.
Upvotes: 1