Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 00002 #include "mbed.h" 00003 #include "ESP8266Interface.h" 00004 00005 Serial pc(USBTX, USBRX); 00006 ESP8266Interface wifi(PA_9,PA_10, false); // TX,RX,Debug 00007 DigitalOut ESP8266Reset(PA_12); 00008 DigitalOut ESP8266CS(PA_11); 00009 00010 int main() { 00011 pc.printf("\nStart\n"); 00012 00013 ESP8266Reset = 1; 00014 ESP8266CS = 1; 00015 wait_ms(10); 00016 wifi.connect("yourssid", "yourpassword"); 00017 const char *ip = wifi.get_ip_address(); 00018 const char *mac = wifi.get_mac_address(); 00019 pc.printf("IP : %s\n", ip); 00020 pc.printf("MAC : %s\n", mac); 00021 00022 pc.printf("Finished\n"); 00023 while(1) { 00024 } 00025 }
Generated on Thu Jul 14 2022 08:20:09 by
1.7.2