Simple program to enable me to write to a 128x64 OLED display over BLE

Dependencies:   Adafruit_GFX BLE_API mbed nRF51822 SemVer

Embed: (wiki syntax)

« Back to documentation index

main.cpp File Reference

main.cpp File Reference

Go to the source code of this file.

Functions

void buttonCallback (void)
 Callback to write to connected client and display.
void connectionCallback (Gap::Handle_t tHandle, Gap::addr_type_t ePeerAddrType, const Gap::address_t c6PeerAddr, const Gap::ConnectionParams_t *params)
 Callback when new client connects to device.
void disconnectionCallback (Gap::Handle_t handle, Gap::DisconnectionReason_t reason)
 Callback called when a client disconnects.
void onDataWritten (const GattCharacteristicWriteCBParams *params)
 Callback called when a client writes to this device.

Detailed Description

Date:
30 March 2015
Author:
Richard Osterloh <richard.osterloh@gmail.com>

Definition in file main.cpp.


Function Documentation

void buttonCallback ( void   )

Callback to write to connected client and display.

Definition at line 63 of file main.cpp.

void connectionCallback ( Gap::Handle_t  tHandle,
Gap::addr_type_t  ePeerAddrType,
const Gap::address_t  c6PeerAddr,
const Gap::ConnectionParams_t *  params 
)

Callback when new client connects to device.

Parameters:
tHandlehandle to this specific client
ePeerAddrTypethe type of the connected clients address
c6PeerAddrthe address of the connected client
paramsrequested connection parameters

Definition at line 86 of file main.cpp.

void disconnectionCallback ( Gap::Handle_t  handle,
Gap::DisconnectionReason_t  reason 
)

Callback called when a client disconnects.

Parameters:
tHandlehandle of the disconnected client
eReasonthe reason they disconnected

Definition at line 101 of file main.cpp.

void onDataWritten ( const GattCharacteristicWriteCBParams *  params )

Callback called when a client writes to this device.

Parameters:
paramsall parameters related to this data

Definition at line 114 of file main.cpp.