RTCS socket re connect() and return 1704

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTCS socket re connect() and return 1704

379 Views
stuartguo
Contributor I

I run the RTCS on MK60 to transfer data from uart to ethernet , following the order : socket(), bind(), connect(), send() ,shutdown(ABORT_CONNECTION);then re-socket() re-bind() are successful, re-connect() is error and return 1704.

Labels (1)
Tags (3)
0 Kudos
1 Reply

260 Views
soledad
NXP Employee
NXP Employee

Hello Stuart,

Could you please let me know which MQX version are you using??

For MQX 4.2 you can check the eth_to_serial example (C:\Freescale\Freescale_MQX_4_2\rtcs\examples). The eth_to_serial example code demonstrates a simple character passing between UART console and socket.

For MQX for KSDK please check the eth_to_serial example at the path: C:\Freescale\KSDK_1.2.0\middleware\tcpip\rtcs\examples\eth_to_serial

You can use these example as reference.

Have a nice day!

Regards

Sol

0 Kudos