Temperature Sensor DHT readings to FRDMk64f
Fork of Hexi_Blinky_Example by
Diff: main.cpp
- Revision:
- 19:ffd78d964d9f
- Parent:
- 18:293c2885af81
- Child:
- 20:6b29e61092b6
--- a/main.cpp Thu Apr 27 15:10:13 2017 +0000 +++ b/main.cpp Mon Sep 04 18:06:20 2017 +0000 @@ -296,7 +296,7 @@ FPS_Ret = FPS_Wait_Time(1,true,&FPS_Delay); if(FPS_Ret == 1) { - FRDM_UART_Debug.printf("Motion detected, press Finger within %d seconds to Authenticate and display data\r\n",FPS_Delay); + FRDM_UART_Debug.printf("Motion detected, press Finger within %d seconds to Authenticate and display data\r\n",FPS_Delay/1000); FPS_Ret = FPS_Wait_Time(1,false,&FPS_Delay); if(FPS_Ret == 1) { @@ -652,11 +652,11 @@ strcat(ESP_8266_CMD_Send,"\""); ESP_8266_UART.SendCMD(ESP_8266_CMD_Send); - if(FPS_Auth) + //if(FPS_Auth) FRDM_UART_Debug.printf(ESP_8266_CMD_Send); wait(5); ESP_8266_UART.RcvReply(ESP_8266_CMD_Recv, 400); - if(FPS_Auth) + //if(FPS_Auth) FRDM_UART_Debug.printf(ESP_8266_CMD_Recv); } else @@ -664,11 +664,11 @@ strcpy(ESP_8266_CMD_Send,"AT+CIPMUX=0"); ESP_8266_UART.SendCMD(ESP_8266_CMD_Send); - if(FPS_Auth) + //if(FPS_Auth) FRDM_UART_Debug.printf(ESP_8266_CMD_Send); //wait(2); ESP_8266_UART.RcvReply(ESP_8266_CMD_Recv, 400); - if(FPS_Auth) + //if(FPS_Auth) FRDM_UART_Debug.printf(ESP_8266_CMD_Recv); } @@ -719,7 +719,7 @@ wait(100); i++; } - if(FPS_Auth) + //if(FPS_Auth) FRDM_UART_Debug.printf("R\r\n%s",ESP_8266_CMD_Recv); ESP_8266_UART.SendCMD(ESP_8266_CMD_Send); //Post value to thingspeak channel @@ -732,7 +732,7 @@ wait(100); i++; } - if(FPS_Auth) + //if(FPS_Auth) FRDM_UART_Debug.printf("R\r\n%s",ESP_8266_CMD_Recv); }