This is an mbed side application meant to demonstrate how to create a custom GATT service/characteristic with Evothings.

Dependencies:   BLE_API mbed nRF51822

Intro

This code is meant to be run on an mbed enabled BLE board and paired with the mbed-evothings-customGATT smartphone application.

Details

This code is a demonstration of how to create a custom service (UUID=0xA0000) with two characteristics, a read only characteristic (UUID=0xA001) and a write characteristic (UUID=0xA002). What is written to the write characteristic will be copied across to the read characteristic and broadcast out. If a single byte is written it will be used to toggle the on board LED, if more than 1 byte is written the data will be written out to the terminal. The default max size is 10bytes.

Viewing Data

You can use either the LightBlue app on iOS or the nRF Master Control Panel application on Android to view the advertising data. Alternatively you can use a custom Evothings App to view the data.

Evothings?

Evothings is a rapid prototyping environment that uses cordova to enable you to rapidly develop smartphone applications in Javascript. Please download the Evothings workbench to your computer and the Evothings client to your smartphone. Then grab the code from the github page, drag and drop the index.htm file into Evothings workbench and run it on the Evothings client.

Reference

History

hotfix for API change default tip

2015-04-02, by mbedAustin [Thu, 02 Apr 2015 20:27:35 +0000] rev 17

hotfix for API change


updated libraries

2015-04-02, by mbedAustin [Thu, 02 Apr 2015 17:23:10 +0000] rev 16

updated libraries


updated library that was causing a conflict

2015-03-18, by mbedAustin [Wed, 18 Mar 2015 21:02:38 +0000] rev 15

updated library that was causing a conflict


updated library revisions

2015-03-18, by mbedAustin [Wed, 18 Mar 2015 20:09:54 +0000] rev 14

updated library revisions


minor prettification fixes

2015-03-17, by mbedAustin [Tue, 17 Mar 2015 20:40:52 +0000] rev 13

minor prettification fixes


switched out characteristics with macros initializations and removed customservice.h;

2015-03-17, by mbedAustin [Tue, 17 Mar 2015 20:38:40 +0000] rev 12

switched out characteristics with macros initializations and removed customservice.h;


updated code with printf's for LED on / off

2015-03-11, by mbedAustin [Wed, 11 Mar 2015 14:23:25 +0000] rev 11

updated code with printf's for LED on / off


Finished for Alpha Release

2015-03-10, by mbedAustin [Tue, 10 Mar 2015 15:11:10 +0000] rev 10

Finished for Alpha Release


Final Publishable version;

2015-03-09, by mbedAustin [Mon, 09 Mar 2015 19:21:06 +0000] rev 9

Final Publishable version;


Got everything working

2015-03-09, by mbedAustin [Mon, 09 Mar 2015 19:06:45 +0000] rev 8

Got everything working