Test Program for KMLParser lib

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "KMLParser.h"
00003 
00004 Serial debug(USBTX, USBRX);
00005 
00006 LocalFileSystem local("local");
00007 
00008 int main() {
00009     debug.baud(115200);
00010     
00011     
00012     FILE *fp = fopen("/local/waypoint.kml", "r");
00013     KMLParser parse(fp);
00014     if(parse._tree){
00015         parse._tree->debug_printf();
00016     }
00017     fclose(fp);
00018     debug.printf("FINISH!\r\n");
00019 }