Error in UDP send | developer.brewmp.com Error in UDP send | developer.brewmp.com

Developer

Error in UDP send

Forums:

Hi,

I'm trying run the "c_mynetworksample" from the site.

When I run it on the simulator everything is OK and I can get a UDP packet to my server.

When I run it on a physical device, I get an error: "Could not write to server!".

This error returns on "c_mynetworksample_SockPortSendCB" when it tries to do "ISockPort_SendTo".

The command returns -1 and when it uses "ISockPort_GetLastError" it returns 0x22.

 

Any ideas to what the problem could be?

Thanks!

 

Are u sure the error is ox22. its ENOTYPE, i.e. there is no type (MIME type) associated with the data. Make sure the data is valid.
 
can u share the IP/Port on which you are trying to write data?

Are u sure the error is ox22. its ENOTYPE, i.e. there is no type (MIME type) associated with the data. Make sure the data is valid.
 
can u share the IP/Port on which you are trying to write data?

The IP and port are for a server I have. How is it relevent?
What does it mean that there is no type associated?

The IP and port are for a server I have. How is it relevent?
What does it mean that there is no type associated?

that wat i wonder, that error is a bit difficult to understand to come from a Socket Write operation. are u sure its 0x22.
i do not have any such server to check up the write operation. just wanted to see wats goin on.

that wat i wonder, that error is a bit difficult to understand to come from a Socket Write operation. are u sure its 0x22.
i do not have any such server to check up the write operation. just wanted to see wats goin on.