This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Operation not supported on Socket error

I'm porting from 1.2.0 to 1.4.2. I'm using mqtt_simple as a baseline but I'm connected to Google Cloud. I successfully create a socket;

net_mqtt_sock_tls.mqtt_client_tls_connect: (0x20020c70): Created socket 1

but when I try to actually call connect using this socket, is says that the operation is not supported;

mqtt_connect failed: -95 Operation not supported on socket

I'm not sure what could cause this.  I can paste how i initialize my client and broker structures if that would help.  I'm hoping if I can understand the situtations that cause this error, I might be able to narrow it down myself.

Related