Cayenne demo
Dependencies: Cayenne-MQTT-mbed NetworkSocketAPI X_NUCLEO_IDW01M1v2 mbed Servo
Fork of Cayenne-X-NUCLEO-IDW01M1-TMP36 by
Revision 9:668337c0fb8a, committed 2017-08-29
- Comitter:
- rozendhyan
- Date:
- Tue Aug 29 17:11:37 2017 +0000
- Parent:
- 8:f1e261b1e25b
- Commit message:
- remove not used argument & define
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f1e261b1e25b -r 668337c0fb8a main.cpp --- a/main.cpp Tue Aug 29 17:05:03 2017 +0000 +++ b/main.cpp Tue Aug 29 17:11:37 2017 +0000 @@ -10,10 +10,6 @@ #include "BME280.hpp" #include "LED.hpp" #include "Servo.h" -//Tigger flag -bool LED_Flag = false; -bool Servo_Flag = false; -float Servo_control = 0.0; // WiFi network info. char* ssid = "megu megu fire"; char* wifiPassword = "66666667"; @@ -78,12 +74,10 @@ printf("get channel ==%d\nget value ==%c\n",channel,value); if(channel ==1 && value ==49){ printf("LED has been Triger\n"); - //LED_Flag=true; led.On(); }else if(channel ==2 && (value>=48 && value <=58)){ servo = ((float)(value-48)/10); }else{ - LED_Flag=false; led.Off(); } }