Accepts RPC commands over bluetooth (RN42)

Dependencies:   mbed m3pi

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "m3pi.h"
00003 #include "SerialRPCInterface.h"
00004 
00005 // RN42 module defaults to 115,200 and is connected on p28,p27
00006 SerialRPCInterface Interface(p28, p27, 115200);
00007 
00008 m3pi m3pi;
00009 
00010 int main() {
00011   
00012   m3pi.locate(0,1);
00013   m3pi.printf("Blutooth");
00014   
00015   // do nothing, just wait for RPC comands
00016   while(1) {}
00017 }