Static IP-adress W5500+Mega2560 (BlynkSimpleEthernet.h)

Hi!
How to setup static IP-adress from W5500, please help me example code?

#define BLYNK_TEMPLATE_ID           "ID"
#define BLYNK_DEVICE_NAME           "Quickstart Device"
#define BLYNK_AUTH_TOKEN            "TOKEN"
#define BLYNK_PRINT Serial

#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>

char auth[] = BLYNK_AUTH_TOKEN;

BlynkTimer timer;

BLYNK_WRITE(V0)
{
  int value = param.asInt();

  Blynk.virtualWrite(V1, value);
}

BLYNK_CONNECTED()
{
  Blynk.setProperty(V3, "offImageUrl", "https://static-image.nyc3.cdn.digitaloceanspaces.com/general/fte/congratulations.png");
  Blynk.setProperty(V3, "onImageUrl",  "https://static-image.nyc3.cdn.digitaloceanspaces.com/general/fte/congratulations_pressed.png");
  Blynk.setProperty(V3, "url", "https://docs.blynk.io/en/getting-started/what-do-i-need-to-blynk/how-quickstart-device-was-made");
}

void myTimerEvent()
{
  Blynk.virtualWrite(V2, millis() / 1000);
}

void setup()
{
   Serial.begin(115200);
  

    pinMode(22, OUTPUT);
    digitalWrite(22, LOW);

  Blynk.begin(auth);


  timer.setInterval(1000L, myTimerEvent);
}

void loop()
{
  Blynk.run();
  timer.run();
}

This example code don’t settings for start Ethernet.h

What does this mean?

Pete.

  Ethernet.begin(mac, ip);
  Blynk.config(SECRET_BLYNK_TOKEN);

Good evening! Sorry, has been away for a long time…
I wanted to ask how to spell out a static ip-address when starting a sketch from an example (Blynk Quickstart Device.

// the media access control (ethernet hardware) address for the shield:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

//the IP address is dependent on your network
IPAddress ip(192, 168, 0, 2);

These classes Ethernet.h are not present in the example Quickstart Devise. And

// initialize the ethernet device
  Ethernet.begin(mac, ip, dnServer, gateway, subnet);

is also missing from the example Quickstart Devise (Blynk).
My question is how to run Ethernet Shield with a static ip-address?

Good evening! Sorry, has been away for a long time…

#define BLYNK_TEMPLATE_ID           "ID"
#define BLYNK_DEVICE_NAME           "Quickstart Device"
#define BLYNK_AUTH_TOKEN            "TOKEN"

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192, 168, 0, 2);

void setup()
{
//Blynk.begin(auth);
Ethernet.begin(mac, ip);
Blynk.config(BLYNK_AUTH_TOKEN);
}

is such a code true?

Once again, I don’t understand what you’re saying.

Pete.

How run Quickstart Device code with static IP-adress on W5500?

I’d suggest that you post the sketch that you are using, and explain in detail what you’ve tried already, and what results that gave.

The more information you can provide the better.
Posting small snippets of code with strangely worded questions or comments doesn’t help us to help you.

Pete.

yes. add a loop() with Blynk.run()