Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zdennis
zdennis / ble_macros.h
Last active January 3, 2017 17:04
Bluetooth Low Energy C macros for use with the Texas Instruments BTLE Stack 1.4.x.
#ifndef BLE_MACROS
#define BLE_MACROS
#include "att.h"
#include "gatt_uuid.h"
#define BLE_PRIMARY_SERVICE(permissions, valuePtr) \
{ \
{ ATT_BT_UUID_SIZE, primaryServiceUUID }, \
permissions, \
@volca
volca / serial.ino
Created April 27, 2013 13:55
Arduino example for BlueShield
String tmp = "";
void setup() {
Serial.begin(9600);
}
void loop() {
while (Serial.available() > 0) {
tmp += char(Serial.read());