for college work

Dependencies:   mbed ESP8266

Files at this revision

API Documentation at this revision

Comitter:
himanshukaushik
Date:
Tue Mar 16 09:35:29 2021 +0000
Parent:
1:8ab009672555
Commit message:
things speak with lm35;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8ab009672555 -r 41c2ea9f1c0a main.cpp
--- a/main.cpp	Sat Jun 17 09:53:27 2017 +0000
+++ b/main.cpp	Tue Mar 16 09:35:29 2021 +0000
@@ -4,10 +4,10 @@
 Serial pc(USBTX,USBRX);
 
 //POT sensor 
-AnalogIn pot(PTB0);
+AnalogIn pot(p20);
 
 //wifi UART port and baud rate
-ESP8266 wifi(PTE0, PTE1, 115200); 
+ESP8266 wifi(p9, p10, 9600); 
 
 //buffers for wifi library
 char resp[1000];
@@ -16,8 +16,8 @@
 int timeout = 8000; //timeout for wifi commands
 
 //SSID and password for connection
-#define SSID "Eduvance" 
-#define PASS "eduvance123"  
+#define SSID "Chaitanya1" 
+#define PASS "9632964359"  
 
 //Remote IP
 #define IP "184.106.153.149"
@@ -26,7 +26,7 @@
 float potvalue = 0; 
 
 //Update key for thingspeak
-char* Update_Key = "O1VOWGC3WXI981H6";
+char* Update_Key = "2FUWSXS9P54M7UZW";
  
 //Wifi init function
 void wifi_initialize(void){