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 #include "mbed.h" 00002 #include "SoftSerial.h" 00003 #include "ESP8266.h" 00004 00005 Serial *logger; 00006 SoftSerial *ser; 00007 ESP8266 *esp; 00008 00009 int main() { 00010 logger = new Serial(USBTX, USBRX); 00011 ser = new SoftSerial(dp18, dp17); 00012 00013 ser->baud(9600); 00014 logger->baud(9600); 00015 00016 esp = new ESP8266(ser); 00017 esp->setLogger(logger); 00018 00019 if(!esp->config()) { 00020 logger->printf("Configuration failed.\r\n"); 00021 return -1; 00022 } 00023 00024 if(!esp->connect("ArtesWare HQ Main", "kt621221")) { 00025 logger->printf("Connection failed.\r\n"); 00026 return -1; 00027 } 00028 00029 esp->connectionStatus(); 00030 00031 delete esp; 00032 delete logger; 00033 delete ser; 00034 00035 return 0; 00036 00037 }
Generated on Thu Jul 14 2022 01:02:14 by
1.7.2