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.
Dependencies: ESP8266_MDM_LIB mbed
main.cpp
- Committer:
- epgmdm
- Date:
- 2017-05-23
- Revision:
- 0:05892921e025
File content as of revision 0:05892921e025:
#include "mbed.h" #include "ESP8266_mdm.h" DigitalOut myled(LED1); DigitalOut ch_pd(PTB19); int main() { RawSerial* pc = new RawSerial(USBTX, USBRX); pc->baud(115200); RawSerial *esp = new RawSerial(D1, D0); //Tx, Rx int server=0; ch_pd=1; ESP8266_mdm *espClient = new ESP8266_mdm(esp,server,pc,PTB19); while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); } }