aws_iot_send, error: -95

Hello,

I've been testing the AWS IOT app and ran into an issue where sometimes I see error -95, EOPNOTSUPP, on a connection when I am sending data to AWS. When I run the code on the dev kit I don't see this ever (at least so far), but when I run the code on my custom board I see this occasionally, but not all the time. It appears that the frequency of this error is tied to the message size. On the dev kit, I transmitted MQTT messages of 1024 bytes without issue for an hour. However when I ran the same code on my custom board, the error occurred after just a few seconds. When I decreased the packet size to 512 bytes, it ran for an hour before I stopped it, but my effective throughput was cut because the overhead was larger relative to the payload. It appears that this is coming from the socket layer, but I don't understand the dependence on packet size and wonder if anyone has seen this before.

Thanks.

Mike

Related