Hi friends. today I bought W5100 arduino ethernet shield but it cannot be connecting to the local server.
the serial monitor like this:
[0] Getting IP...
[5524] IP:10.5.51.4
[5524]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ \/ '_/
/____/_/\_, /_//_/_/\_\
/___/ v0.5.4 on Arduino Uno
[5638] Connecting to blynk-cloud.com:80
[6169] Invalid auth token
[10868] Connecting to blynk-cloud.com:80
the sketch I using:
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "f5b6ec2ba1aa4e189e3f034a3fdae070";
char server[] = "10.5.50.18";
#define W5100_CS 10
#define SDCARD_CS 4
void setup()
{
// Debug console
Serial.begin(9600);
pinMode(SDCARD_CS, OUTPUT);
digitalWrite(SDCARD_CS, HIGH); // Deselect the SD card
Blynk.begin(auth);
// You can also specify server:
Blynk.begin(auth, server, 8080);
}
void loop()
{
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}
thanks