Nathan Hutton / Mbed 2 deprecated WiFly_hello_world

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 "Wifly.h"   
00003 
00004  Wifly * wifly;
00005  Serial pc(USBTX, USBRX);
00006  
00007  int main()
00008  {
00009    wifly = new Wifly(p9, p10, p20, "network", "password", true);
00010    
00011    if(wifly->Join())
00012        pc.printf("network joined!\r\n");
00013    else
00014        pc.printf("join failed!\r\n");
00015        
00016  }