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 AT MODE 00003 **************/ 00004 /************** 00005 00006 Module : HC-05 00007 00008 ***********/ 00009 00010 #include "mbed.h" 00011 00012 Serial pc(USBTX, USBRX); 00013 Serial bt(D1,D0); 00014 00015 int main(void) 00016 { 00017 pc.baud(9600); 00018 bt.baud(38400); 00019 00020 pc.printf("WIZwiki-W7500\n\r"); 00021 pc.printf("HC-05 SET\n\r"); 00022 00023 char ch; 00024 00025 while(1) 00026 { 00027 if(pc.readable()) 00028 { 00029 ch = pc.getc(); 00030 bt.putc(ch); 00031 } 00032 00033 if(bt.readable()) 00034 { 00035 ch = bt.getc(); 00036 pc.putc(ch); 00037 } 00038 } 00039 }
Generated on Tue Jul 12 2022 21:43:25 by
1.7.2