Accepts RPC commands over bluetooth (RN42)

Dependencies:   mbed m3pi

main.cpp

Committer:
chris
Date:
2010-11-10
Revision:
2:acdb15f683eb
Parent:
0:74f2e70fcd27
Child:
3:be428c849e1c

File content as of revision 2:acdb15f683eb:

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

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

m3pi m3pi(p23,p9,p10);

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