Fan Control Demo

Dependencies:   mbed-rtos mbed

Fork of mbed_fota by KIM HyoengJun

Revision:
12:e3d3676753cc
Parent:
9:fcf91f563147
--- a/ext_fota/BleMsgHandler.cpp	Mon Aug 24 03:24:19 2015 +0000
+++ b/ext_fota/BleMsgHandler.cpp	Wed Sep 02 07:44:29 2015 +0000
@@ -13,6 +13,7 @@
 #include "diss_task.h"
 #include "fota_server_task.h"
 #include "app_task.h"
+#include "fan_control_task.h"
 
 /**
  ****************************************************************************************
@@ -217,13 +218,35 @@
             break;
         case FOTA_SERVER_DISABLE_IND:
             if( print_flag == 1)
-                    hostpc->printf("==> FOTA_SERVER_DISABLE_IND!!\n");
+                hostpc->printf("==> FOTA_SERVER_DISABLE_IND!!\n");
+            break;
+        case FOTA_SERVER_DATA_FLASH_IND:
+            if ( print_flag == 1)
+                hostpc->printf("Rcved FOTA_SERVER_DATA_FLASH_IND Msg\n");
+            fota_server_data_flash_ind_handler(msg_hdr.bType,(struct fota_server_data_flash_ind *)&msg[paramPos],msg_hdr.bDstid,msg_hdr.bSrcid,this);
             break;
         case FOTA_SERVER_ERROR_IND:
             if ( print_flag == 1)
                 hostpc->printf("Rcved FOTA_SERVER_ERROR_IND Msg\n");
-            fota_server_data_flash_ind_handler(msg_hdr.bType,(struct fota_server_data_flash_ind *)&msg[paramPos],msg_hdr.bDstid,msg_hdr.bSrcid,this);
-            break;    
+            break;
+        case FAN_CONTROL_CREATE_DB_CFM:
+            if ( print_flag == 1)
+                hostpc->printf("Rcved FAN_CONTROL_CREATE_DB_CFM Msg\n");
+            fan_control_create_db_cfm_handler(msg_hdr.bType,(struct fan_control_create_db_cfm *)&msg[paramPos],msg_hdr.bDstid,msg_hdr.bSrcid,this);
+            break;
+        case FAN_CONTROL_DISABLE_IND:
+            if( print_flag == 1)
+                hostpc->printf("==> FAN_CONTROL_DISABLE_IND!!\n");
+            break;
+        case FAN_CONTROL_COMMAND_IND:
+            if( print_flag == 1)
+                hostpc->printf("==> FAN_CONTROL_COMMAND_IND msg\n");
+            fan_control_command_ind_handler(msg_hdr.bType,(struct fan_control_command_ind *)&msg[paramPos],msg_hdr.bDstid,msg_hdr.bSrcid,this);
+            break;
+        case FAN_CONTROL_ERROR_IND:
+            if( print_flag == 1)
+                hostpc->printf("==> FAN_CONTROL_ERROR_IND !!\n");
+            break;
         default:
             if( print_flag == 1)
                 hostpc->printf("message Type Not Defined ! \n");