Hi to all!I tried to connect arduino Mega with ESP8266 as shield.But i dont understend how connect to my locall server,default try to cnnect blynk.cloud.com.How can I change this setting and connect to the local server?
[code]#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h> #include <BlynkSimpleShieldEsp8266.h>
//#include <ESP8266_HardSer.h>
//#include <BlynkSimpleShieldEsp8266_HardSer.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “***************************”;
// Your WiFi credentials.
// Set password to “” for open networks.
char ssid[] = “******”;
char pass[] = “************”;
// Hardware Serial on Mega, Leonardo, Micro… #define EspSerial Serial
// or Software Serial on Uno, Nano…
//#include <SoftwareSerial.h>
//SoftwareSerial EspSerial(15, 14); // RX, TX
// Your ESP8266 baud rate: #define ESP8266_BAUD 115200
Hi, A new problem arose, after a couple of minutes the connection is lost and the device does not want to reconnect.How to solve the problem of reconnecting on ESP8266 i know,but now I’m in difficulty.Can you help me?This is the connection log
[19]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
///_, /////_
/__/ v0.4.8 on Arduino Mega
[526] Connecting to home
AT
ATE0
AT+GMR
[3572] AT version:0.21.0.0
SDK version:0.9.5
AT+CIPMUX=1
AT+CWMODE?
AT+CWJAP=“",""
AT+CIFSR
[6614] +CIFSR:STAIP,“192.168.0.100”
+CIFSR:STAMAC,"************”
[6614] Connected to WiFi
AT+CIPCLOSE=1
AT+CIPSTART=1,“TCP”,“192.168.0.156”,8442
AT+CIPSEND=1,37
*************************[41720] Ready (ping: 12ms).
hver 0.4.8 h-beat 10 buff-in 1024 deAT+CIPSEND=1,40
v Arduino Mega cpu ATmega2560 con ESP8266AT+CIPSEND=1,29
6 build Jul 6 1017 22:48:32 AT+CIPSEND=1,40
$1 i *****************************************AT+CIPSEND=1,1
AT+CIPSEND=1,13
1 vw 5 0
AT+CIPCLOSE=1