We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
the example LEDSwitch Client for MCB2300 did not work correctly in my MCB2378 board.it can be ping,but i can not connect to it by TCPServer.
switch (protocol) { case TCP: socket_tcp = tcp_get_socket (TCP_TYPE_CLIENT, 0, 10, tcp_callback); if (socket_tcp != 0) { tcp_connect (socket_tcp, Rem_IP, PORT_NUM, 0);} break; while (1) { timer_poll (); main_TcpNet (); }
i checked and called tcp_get_state(socket_tcp); ,but it return TCP_STATE_SYN_SENT (value = 4)always.How can i do that return correctly value TCP_STATA_CONNECT?
Please check your LAN settings. The LEDswitch client/server examples are configured to Static IP in class C with network address: 192.168.0
If your network address is different, LEDswitch examples will not work because the packets will be routed out of your local LAN to internet.
Franc