This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to control LEDs on mcb1700 with LAN cable via pc and TCP/ip??

Dear Sir/Madam
I have a MCB1700 board and i want to control its LEDs via pc via TCP/ip.in order to do it i used LEDswitch program but i read the help and it suggests to use a specific windows application for control the LEDs via LAN cable and pc.in this case the board is a server and PC is a client.
How can i find this windows application ?
can i use command prompt window instead of windows application?if yes please help me how to use it.
Also please give me some help for configuring my LEDswitch program codes on my board.

Thank you

Parents
  • In the source of LEDSwitchDlg.cpp

      if(connect(s,(struct sockaddr*)&sin,sizeof(sin)) == SOCKET_ERROR) {
        MessageBox(WSERROR3,WSTITLE, MB_OK | MB_ICONSTOP);
        WSACleanup();
        return;
      }
    

    It give you that err-msg, because connect() failed with SOCKET_ERROR.
    You should use C# to connect to MCB1700, and try your best.

    What is the IP/MAC configured in HTTPDemo project?

Reply
  • In the source of LEDSwitchDlg.cpp

      if(connect(s,(struct sockaddr*)&sin,sizeof(sin)) == SOCKET_ERROR) {
        MessageBox(WSERROR3,WSTITLE, MB_OK | MB_ICONSTOP);
        WSACleanup();
        return;
      }
    

    It give you that err-msg, because connect() failed with SOCKET_ERROR.
    You should use C# to connect to MCB1700, and try your best.

    What is the IP/MAC configured in HTTPDemo project?

Children