 }
 
 void setup() {
+  Serial1.begin(19200);
   Serial.begin(19200);
-  debugPort.begin(19200);
   esp.enable();
   delay(500);
   esp.reset();
   delay(500);
   while(!esp.ready());
 
-  debugPort.println("ARDUINO: setup rest client");
+  Serial.println("ARDUINO: setup rest client");
   if(!rest.begin("yourapihere-com-r2pgihowjx7x.runscope.net")) {
-    debugPort.println("ARDUINO: failed to setup rest client");
+    Serial.println("ARDUINO: failed to setup rest client");
     while(1);
   }
 
   /*setup wifi*/
-  debugPort.println("ARDUINO: setup wifi");
+  Serial.println("ARDUINO: setup wifi");
   esp.wifiCb.attach(&wifiCb);
-  esp.wifiConnect("DVES_HOME","wifipassword");
-  debugPort.println("ARDUINO: system started");
+  esp.wifiConnect(SSID, PASS);
+  Serial.println("ARDUINO: system started");
 }
 
 void loop() {

  if(res.getArgc() == 1) {
    res.popArgs((uint8_t*)&status, 4);
    if(status == STATION_GOT_IP) {
      debugPort.println("WIFI CONNECTED");
     
      wifiConnected = true;
    } else {

 *       Tuan PM <tuanpm@live.com>
 */

#include <espduino.h>
#include <rest.h>

#define PIN_ENABLE_ESP 13
#define SSID  "YOUR-SSID"
#define PASS  "YOUR-WIFI-PASS"

ESP esp(&Serial1, &Serial, PIN_ENABLE_ESP);

REST rest(&esp);

