Download a stream of data to a peripheral over BLE.

Dependencies:   BLE_API mbed nRF51822

A simple demonstration of downloading a stream onto a peripheral over BLE. There's a corresponding Python script to driver the client.

Configuration.h

Committer:
rgrover1
Date:
2014-08-18
Revision:
0:4eaf82806f06

File content as of revision 0:4eaf82806f06:

#ifndef _H_CONFIGURATION_H
#define _H_CONFIGURATION_H

/*
 * Configuration.h
 * Prashant Vaibhav, TobyRich GmbH
 *
 * This file defines default configuration parameters like device name, connection parameters etc.
 */

namespace Config
{
const uint8_t deviceName[] = "Transfer PRO";

const int advertisingInterval = 160;   // (0.625 ms units)

// default connection parameters conforming to Apple recommendations
const int minConnectionInterval = 16; // (1.25 ms units)
const int maxConnectionInterval = 40; // (1.25 ms units)
const int slaveLatency          = 0;
const int supervisionTimeout    = 500; // (10 ms units)

const int blockSize = 16; // in bytes
}

#endif //_H_CONFIGURATION_H