bunch of tesitng for F746NG
Dependencies: BSP_DISCO_F746NG F746_GUI F7_Ethernet LCD_DISCO_F746NG SimpleSocket TMP36 GZ TS_DISCO_F746NG TextLCD WebSocketClient mbed-rtos mbed sMotor
Diff: socket_com.cpp
- Revision:
- 1:1f4543ea364d
- Parent:
- 0:45610c4af223
diff -r 45610c4af223 -r 1f4543ea364d socket_com.cpp --- a/socket_com.cpp Mon Dec 11 09:46:58 2017 +0000 +++ b/socket_com.cpp Mon Jun 18 13:16:23 2018 +0000 @@ -1,10 +1,11 @@ -#include "mbed.h" +/*#include "mbed.h" #include "rtos.h" #include "LCD_DISCO_F746NG.h" #include "TextLCD.h" #include "TCPSocketConnection.h" LCD_DISCO_F746NG lcd_socket; +void sending(); void sending() { @@ -22,8 +23,8 @@ } serv_addr.sin_family = AF_INET; - serv_addr.sin_port = htons(8889); - serv_addr.sin_addr.s_addr = inet_addr("10.130.56.27"); + serv_addr.sin_port = htons(8993); + serv_addr.sin_addr.s_addr = inet_addr("192.168.8.107"); if(lwip_connect(sockfd, (struct sockaddr *)&serv_addr, sizeof(serv_addr))<0) { sprintf(connect_error, "\n Error : Connect Failed \n"); @@ -44,4 +45,4 @@ printf("\n Read Error \n"); } -} \ No newline at end of file +}*/ \ No newline at end of file