Accepts RPC commands over bluetooth (RN42)

Dependencies:   mbed m3pi

main.cpp

Committer:
chris
Date:
2011-05-12
Revision:
3:be428c849e1c
Parent:
2:acdb15f683eb

File content as of revision 3:be428c849e1c:

#include "mbed.h"
#include "m3pi.h"
#include "SerialRPCInterface.h"

// RN42 module defaults to 115,200 and is connected on p28,p27
SerialRPCInterface Interface(p28, p27, 115200);

m3pi m3pi;

int main() {
  
  m3pi.locate(0,1);
  m3pi.printf("Blutooth");
  
  // do nothing, just wait for RPC comands
  while(1) {}
}