Horia Carbune / Mbed 2 deprecated nRF51822_BLE_Control_Refactor

Dependencies:   BLE_API mbed nRF51822

Fork of nRF51822_SimpleChat by Cristi Stoican

Files at this revision

API Documentation at this revision

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();