-
Hi everyone, I am working with a nrf52840 and want to make use of the Azure IoT Hub. I've checked out the Azure IoT Hub Library that exists for the nrf91, which uses the MQTT library from zephyr. The MQTT library creates zephyr sockets with mbedtls options. I have set up a OpenThread network with a BorderRouter and other device, I can resolve hostnames through the nat64 interface and set up tcp connections to the internet. I tried using the zephyr sockets but am unable to create a socket that does not timeout. I also cannot use getaddrinfo to resolve hostnames. I am able to use the OpenThread TCP api to create connections but I cant create TLS connections with these. Should I be able to use the Zephyr sockets with a OpenThread network? Or do I need to find another way |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 16 replies
-
Zephyr's I believe you should be able to use Zephyr sockets with OpenThread, but I am unsure why you are not able to establish TLS/TCP connections. Maybe @LuDuda can provide some insight. |
Beta Was this translation helpful? Give feedback.
Zephyr's
getaddrinfo
probably does not (yet) integrate with Thread's DNS services. For example, Thread defines specific mechanisms for discovering the DNS configuration info.I believe you should be able to use Zephyr sockets with OpenThread, but I am unsure why you are not able to establish TLS/TCP connections. Maybe @LuDuda can provide some insight.