A library for easier setup and prototyping of IoT devices (pucks), by collecting everything that is common for all pucks in one place.

Dependencies:   BLE_API nRF51822

Dependents:   ir-puck display-puck ir-puck2 BLE_ScoringDevice ... more

/media/uploads/stiaje/header.jpg

Introduction

Raspberry Pi took the maker community by storm when it launched in 2012. With its internet access it allowed small projects to be internet-of-things enabled. We have created a platform to take this one step further.

Our platform, called the Puck platform, is an internet of things platform for mbed. mbed makes it easy to program embedded hardware for people new to embedded systems. Our platform is built upon the first mbed chip with Bluetooth, the nRF51822 created by Nordic Semiconductor. We hope to create a community around these BLE devices where people contribute to the project, and share their designs with each other. Everything is open-source, of course, with lots of supporting materials.

We make it easy to rapidly prototype and develop Bluetooth LE enabled devices - get up and running in under 10 lines of code.

Tutorials and in-depth documentation is available at the project's GitHub page

Pucks

We've developed a handful of awesome examples to demonstrate the platform. These examples are named 'Pucks'. By talking to the internet through your smartphone, the barrier to creating your own Internet of Things device is lower than ever.

Files at this revision

API Documentation at this revision

Comitter:
sigveseb
Date:
Tue Mar 03 20:51:34 2015 +0000
Parent:
19:e41c83f1430e
Child:
21:00a3567124e3
Commit message:
Add setting of device name to puck init

Changed in this revision

Puck.h Show annotated file Show diff for this revision Revisions of this file
--- a/Puck.h	Sun Mar 01 18:37:05 2015 +0000
+++ b/Puck.h	Tue Mar 03 20:51:34 2015 +0000
@@ -205,11 +205,16 @@
     ble.init();
     LOG_DEBUG("Inited BLEDevice.\n");
     setState(DISCONNECTED);
-
+    
+    char deviceName[10];
+    sprintf(&deviceName[0], "Puck %04X", minor);
+    deviceName[9] = '\0';
+    ble.setDeviceName((const uint8_t*) deviceName);
+    
     ble.accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED);
     LOG_DEBUG("Accumulate advertising payload: BREDR_NOT_SUPPORTED.\n");
     
-    ble.accumulateAdvertisingPayload(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, beaconPayload, sizeof(beaconPayload));
+    //ble.accumulateAdvertisingPayload(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, beaconPayload, sizeof(beaconPayload));
     LOG_DEBUG("Accumulate advertising payload: beacon data.\n");
     
     ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED);