A demonstartion to show how easy (as the name would suggest) the BlueFruit EZ-Link is to get a bluetooth connection in your project.

Dependencies:   mbed

main.cpp

Committer:
melmon
Date:
2015-06-24
Revision:
0:c1798dc6ef6f

File content as of revision 0:c1798dc6ef6f:

#include "mbed.h"

DigitalOut myled(LED1);

Serial bluetooth(p13,p14); //setup the serial pins for the bluetooth connection

int main() {
    while(1) {
        myled = 1;
        wait(2);
        myled = 0;
        bluetooth.printf("EZ-Test \r\n", ); // transmit the data you want to, don't worry about the baud rate etc. the EZ-Link auto sets this
        wait(2);
    }
}