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 /*Program Example 12.3: function to initialise paired Bluetooth connection with RN-41 modules 00002 */ 00003 void initialise_connection() { 00004 00005 rn41.putc('$'); // Enter command mode 00006 rn41.putc('$'); // 00007 rn41.putc('$'); // 00008 wait(0.5); 00009 00010 rn41.putc('C'); // 00011 rn41.putc(','); // Send MAC address 00012 rn41.putc('0'); // 00013 rn41.putc('0'); // 00014 rn41.putc('0'); // 00015 rn41.putc('6'); // 00016 rn41.putc('6'); // 00017 rn41.putc('6'); // 00018 rn41.putc('0'); // 00019 rn41.putc('7'); // 00020 rn41.putc('A'); // 00021 rn41.putc('C'); // 00022 rn41.putc('C'); // 00023 rn41.putc('1'); // 00024 wait(0.5); 00025 00026 rn41.putc('-'); // Exit command mode 00027 rn41.putc('-'); // 00028 rn41.putc('-'); // 00029 rn41.putc(0x0D); // 00030 wait(0.5); 00031 } 00032
Generated on Tue Jul 26 2022 14:22:45 by
1.7.2