LightBlue Bean sample app. Communicates with a LightBlue Bean using NodeJS and the ble-bean NPM package.
For some reason this didn't work with Arduino 1.6.6 (latest releast at the time). I downgraded to Arduino 1.6.5 and was able to upload the sketch.
Use instructions here as an example: http://legacy.punchthrough.com/bean/getting-started-osx/
Taken from here: https://github.com/jacobrosenthal/arduino/blob/bean/examples/StandardFirmata/StandardFirmata.ino
http://iceddev.com/blog/beanbots-rise-of-the-swarm/ (includes mobile)