Hi everyone,
I have connected Ethernet Shield W5100 to Arduino UNO R3.
W5100 connected to my home router which connected to internet. There is the static IP in my router: 10.10.10.1
And I use the same Auth Token in project also at mobile application. And I can ping to W5100
But when I try to run mobile application there is message “Your Arduino UNO is not in network”
Here is the code:
`#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#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[] = “3470504abf3a478d805814ac8e98bdb8”;
IPAddress server_ip (10, 10, 10, 1);
// Mac address should be different for each device in your LAN
byte arduino_mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
IPAddress arduino_ip ( 10, 10, 10, 100);
IPAddress dns_ip ( 8, 8, 8, 8);
IPAddress gateway_ip ( 10, 10, 10, 1);
IPAddress subnet_mask(255, 255, 255, 0);
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, server_ip, 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
// Or like this:
//Blynk.begin(auth, “blynk-cloud.com”, 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
}
void loop()
{
Blynk.run();
}`