BLE demo for mbed Ported RunningElectronics's SBDBT firmware for BLE. It can communicate with iOS

Dependencies:   FatFileSystem mbed

Fork of BTstack by Norimasa Okamoto

Committer:
todotani
Date:
Thu Feb 07 14:01:01 2013 +0000
Revision:
1:6078e430af82
Child:
6:cf06ba884429
BLE demo for mbed; Ported SBDBT (RunningElectronics) firmware for BLE to mbed. It can communicate with iOS

Who changed what in which revision?

UserRevisionLine numberNew contents of line
todotani 1:6078e430af82 1 // profile.h generated from profile.gatt for BTstack
todotani 1:6078e430af82 2
todotani 1:6078e430af82 3 // binary representation
todotani 1:6078e430af82 4 // attribute size in bytes (16), flags(16), handle (16), uuid (16/128), value(...)
todotani 1:6078e430af82 5
todotani 1:6078e430af82 6 #include <stdint.h>
todotani 1:6078e430af82 7
todotani 1:6078e430af82 8 const uint8_t profile_data[] =
todotani 1:6078e430af82 9 {
todotani 1:6078e430af82 10 // 0x0001 PRIMARY_SERVICE-GAP_SERVICE
todotani 1:6078e430af82 11 0x0a, 0x00, 0x02, 0x00, 0x01, 0x00, 0x00, 0x28, 0x00, 0x18,
todotani 1:6078e430af82 12 // 0x0002 CHARACTERISTIC-GAP_DEVICE_NAME-READ
todotani 1:6078e430af82 13 0x0d, 0x00, 0x02, 0x00, 0x02, 0x00, 0x03, 0x28, 0x02, 0x03, 0x00, 0x00, 0x2a,
todotani 1:6078e430af82 14 // 0x0003 VALUE-GAP_DEVICE_NAME-READ-"mbed BLE TEST"
todotani 1:6078e430af82 15 0x15, 0x00, 0x02, 0x00, 0x03, 0x00, 0x00, 0x2a, 0x6d, 0x62, 0x65, 0x64, 0x20, 0x42, 0x4c, 0x45, 0x20, 0x54, 0x45, 0x53, 0x54,
todotani 1:6078e430af82 16 // 0x0004 CHARACTERISTIC-GAP_APPEARANCE-READ
todotani 1:6078e430af82 17 0x0d, 0x00, 0x02, 0x00, 0x04, 0x00, 0x03, 0x28, 0x02, 0x05, 0x00, 0x01, 0x2a,
todotani 1:6078e430af82 18 // 0x0005 VALUE-GAP_APPEARANCE-READ-00 00
todotani 1:6078e430af82 19 0x0a, 0x00, 0x02, 0x00, 0x05, 0x00, 0x01, 0x2a, 0x00, 0x00,
todotani 1:6078e430af82 20 // 0x0006 PRIMARY_SERVICE-GATT_SERVICE
todotani 1:6078e430af82 21 0x0a, 0x00, 0x02, 0x00, 0x06, 0x00, 0x00, 0x28, 0x01, 0x18,
todotani 1:6078e430af82 22 // 0x0007 CHARACTERISTIC-GATT_SERVICE_CHANGED-READ
todotani 1:6078e430af82 23 0x0d, 0x00, 0x02, 0x00, 0x07, 0x00, 0x03, 0x28, 0x02, 0x08, 0x00, 0x05, 0x2a,
todotani 1:6078e430af82 24 // 0x0008 VALUE-GATT_SERVICE_CHANGED-READ-
todotani 1:6078e430af82 25 0x08, 0x00, 0x02, 0x00, 0x08, 0x00, 0x05, 0x2a,
todotani 1:6078e430af82 26 // 0x0009 PRIMARY_SERVICE-FFF0
todotani 1:6078e430af82 27 0x0a, 0x00, 0x02, 0x00, 0x09, 0x00, 0x00, 0x28, 0xf0, 0xff,
todotani 1:6078e430af82 28 // 0x000a CHARACTERISTIC-FFF1-READ | WRITE | DYNAMIC
todotani 1:6078e430af82 29 0x0d, 0x00, 0x02, 0x00, 0x0a, 0x00, 0x03, 0x28, 0x0a, 0x0b, 0x00, 0xf1, 0xff,
todotani 1:6078e430af82 30 // 0x000b VALUE-FFF1-READ | WRITE | DYNAMIC-
todotani 1:6078e430af82 31 0x08, 0x00, 0x0a, 0x01, 0x0b, 0x00, 0xf1, 0xff,
todotani 1:6078e430af82 32 // 0x000c CHARACTERISTIC-FFF2-READ | WRITE | DYNAMIC
todotani 1:6078e430af82 33 0x0d, 0x00, 0x02, 0x00, 0x0c, 0x00, 0x03, 0x28, 0x0a, 0x0d, 0x00, 0xf2, 0xff,
todotani 1:6078e430af82 34 // 0x000d VALUE-FFF2-READ | WRITE | DYNAMIC-
todotani 1:6078e430af82 35 0x08, 0x00, 0x0a, 0x01, 0x0d, 0x00, 0xf2, 0xff,
todotani 1:6078e430af82 36 // 0x000e CHARACTERISTIC-00001234-0000-1000-8000-00805F9B34FB-READ | WRITE | DYNAMIC
todotani 1:6078e430af82 37 0x1b, 0x00, 0x02, 0x00, 0x0e, 0x00, 0x03, 0x28, 0x0a, 0x0f, 0x00, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x34, 0x12, 0x00, 0x00,
todotani 1:6078e430af82 38 // 0x000f VALUE-00001234-0000-1000-8000-00805F9B34FB-READ | WRITE | DYNAMIC-
todotani 1:6078e430af82 39 0x16, 0x00, 0x0a, 0x03, 0x0f, 0x00, 0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00, 0x34, 0x12, 0x00, 0x00,
todotani 1:6078e430af82 40 // END
todotani 1:6078e430af82 41 0x00, 0x00,
todotani 1:6078e430af82 42 }; // total size 124 bytes