BLE fota Robot Demo

Dependencies:   mbed-rtos mbed mbed_fota_fan_control

Fork of mbed_fota_lamp_control by KIM HyoengJun

Revision:
13:e714e2971c49
Parent:
12:e3d3676753cc
--- a/ext_fota/BleMsgHandler.cpp	Wed Sep 02 07:44:29 2015 +0000
+++ b/ext_fota/BleMsgHandler.cpp	Tue Oct 13 06:35:19 2015 +0000
@@ -14,6 +14,7 @@
 #include "fota_server_task.h"
 #include "app_task.h"
 #include "fan_control_task.h"
+#include "lamp_control_task.h"
 
 /**
  ****************************************************************************************
@@ -247,6 +248,24 @@
             if( print_flag == 1)
                 hostpc->printf("==> FAN_CONTROL_ERROR_IND !!\n");
             break;
+        case LAMP_CONTROL_CREATE_DB_CFM:
+            if ( print_flag == 1)
+                hostpc->printf("Rcved LAMP_CONTROL_CREATE_DB_CFM Msg\n");
+            lamp_control_create_db_cfm_handler(msg_hdr.bType,(struct lamp_control_create_db_cfm *)&msg[paramPos],msg_hdr.bDstid,msg_hdr.bSrcid,this);
+            break;
+        case LAMP_CONTROL_DISABLE_IND:
+            if( print_flag == 1)
+                hostpc->printf("==> LAMP_CONTROL_DISABLE_IND!!\n");
+            break;
+        case LAMP_CONTROL_COMMAND_IND:
+            if( print_flag == 1)
+                hostpc->printf("==> LAMP_CONTROL_COMMAND_IND msg\n");
+            lamp_control_command_ind_handler(msg_hdr.bType,(struct lamp_control_command_ind *)&msg[paramPos],msg_hdr.bDstid,msg_hdr.bSrcid,this);
+            break;
+        case LAMP_CONTROL_ERROR_IND:
+            if( print_flag == 1)
+                hostpc->printf("==> LAMP_CONTROL_ERROR_IND !!\n");
+            break;
         default:
             if( print_flag == 1)
                 hostpc->printf("message Type Not Defined ! \n");