Code APP3
Dependencies: mbed EthernetInterface WebSocketClient mbed-rtos BufferedSerial
Fork of APP3_Lab by
Diff: parser.cpp
- Revision:
- 14:cd488eba8bba
- Parent:
- 13:5f21dd134bd2
- Child:
- 28:322985c7e428
diff -r 5f21dd134bd2 -r cd488eba8bba parser.cpp --- a/parser.cpp Sun Oct 01 16:34:11 2017 +0000 +++ b/parser.cpp Sun Oct 01 18:53:18 2017 +0000 @@ -1,27 +1,6 @@ #include "parser.h" LocalFileSystem local("local"); -/* -void ReadFile() -{ - Serial pc(USBTX, USBRX); // tx, rx - FILE *fp = fopen("/local/config.txt", "r"); // Ouvrir config.txt pour lecture seulement - if(fp == NULL) - { - pc.printf("Failed to find configuration file. \n\r"); - } - else - { - pc.printf("Config file opened. \n\r"); - if (fscanf(fp,"0x%x", &PanID) > 0) - { - pc.printf("PanId : 0x%x value : %u\r\n", PanID, PanID); // Display PanId - } - fscanf(fp,"%s",URL); // read URL - pc.printf("ServeurURL : %s\r\n",URL); // Display URL - fclose(fp); - } -} */ coordinator_config_t read_coordinator_config() {