Program for VC0706 with FTP and MQTT
Dependencies: Ethernet_Camera_LS_Y201_SDcard FTPClient MQTT SDFileSystem WIZnetInterface mbed-src
Fork of FTP_Client_Configuration by
Diff: main.cpp
- Revision:
- 2:a185787cdddf
- Parent:
- 1:b6196ce9efac
- Child:
- 3:cd4afee8b093
--- a/main.cpp Thu Dec 14 04:50:55 2017 +0000 +++ b/main.cpp Thu Dec 14 05:35:51 2017 +0000 @@ -6,8 +6,8 @@ #include <stdio.h> #define FTP_SERVER_PORT 21 static char buf[256]; -static char ID[]={"user"}; //Set FTPServer Login ID -static char PASSWORD[]={"1234"}; //Set FTPServer Login Password +static char ID[]={"FTP"}; //Set FTPServer Login ID +static char PASSWORD[]={"user"}; user //Set FTPServer Login Password FTPClient FTP(PB_3, PB_2, PB_1, PB_0, "sd"); // WIZwiki-W7500 Serial pc(USBTX, USBRX); int main() { @@ -16,9 +16,9 @@ pc.printf("------------------------------FTP Client Example-------------------------------------------!\r\n"); - char ftpServer_control_ip_addr[] = "demo.wftpserver.com"; // FTP Server location - char* userid = "demo-user"; //FTP Server User ID - char* pass = "demo-user"; //FTP Server Password + char ftpServer_control_ip_addr[] = "192.168.0.100"; // FTP Server location + char* userid = "FTP"; //FTP Server User ID + char* pass = "user"; //FTP Server Password EthernetInterface eth; uint8_t mac_addr[6] = {0x00, 0x08, 0xdc, 0x12, 0x34, 0x45}; char IP_Addr[] = "192.168.0.101";