Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822
Fork of nRF51822_SimpleChat by
Revision 4:cfc5c2426e21, committed 2017-05-08
- Comitter:
- carbune92
- Date:
- Mon May 08 13:17:49 2017 +0000
- Parent:
- 3:b6e4e5529a52
- Child:
- 5:fca87573ed92
- Commit message:
- ControllerFactory works
Changed in this revision
| main_ble.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main_ble.cpp Mon May 08 13:05:45 2017 +0000
+++ b/main_ble.cpp Mon May 08 13:17:49 2017 +0000
@@ -22,10 +22,11 @@
controlLoopTicker.attach(controlLoopCall, (TE+0.05f));
//bt.attachProcessInterface(pInt);
-// Controller *myCtrl;
-// ControllerFactory cf;
-// cf.createController( &myCtrl, SysObjTypes::PID );
-// bt.attachController( myCtrl );
+ Controller *myCtrl;
+ ControllerFactory cf;
+ SysObjTypes ctrlType = PID;
+ cf.createController( &myCtrl, ctrlType );
+ bt.attachController( myCtrl );
while (bt.isInit()) {
bt.waitForEvent();
