Arduino Mega + WT32_ETH01 as NCP via LAN

Hi Blynkes
I trying to run my project on Arduino Mega connected to W32_ETH01 as NCP (Wired LAN).

  1. W32_ETH01 is connected to UART_1 on MEGA.
  2. W32_ETH01 is flashed with recommended bin file: BlynkNCP_wt32_eth01.flash.bin
  3. W32_ETH01 seems to be correct programmed as it starts with following text prompt on power on (115200 bd). (as stand alone device without connecting to arduino)
    “ets Jun 8 2016 00:22:57
    rst:0x1 (POWERON_RESET),boot:0x13
    [debug port] Blynk.NCP started
    Version: 0.6.3, Build: Sep 4”

My question is: What is the very simplest sketch on my arduino Mega to get online via LAN?

Thank you in advance

Thomas

I am using:
Blynk v1.3.2 on Arduino Mega

EDIT:
This is my sketch so far (no connection)

#define BLYNK_TEMPLATE_ID “TMPLxxxxxx-h”
#define BLYNK_TEMPLATE_NAME “HOME”
#define BLYNK_AUTH_TOKEN “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”

#define BLYNK_PRINT Serial //Comment this out to disable prints

#include <BlynkSimpleStream.h>

BLYNK_CONNECTED() {
Serial.write(“Connected to Blynk :raised_hands:”);
}

void setup() {
Serial.begin(115200);// USB do PC
while (!Serial) {}
Serial1.begin(115200);
delay(1500);// give some time to connect
Blynk.begin(Serial1, BLYNK_AUTH_TOKEN);
}
void loop() {
Blynk.run();
}

Have you looked at the Edgent NCP example…

Pete.

SOLVED.

Yes Sir,
I know the Edgent example. But there was a error message during compiling:
#include “InternalStorageAVR.h”
^~~~~~~~~~~~~~~~~~~~~~compilation terminated.

However, I found a small Arduino Library “BlynkNcpDriver” with only one example: BlynkNCP_Simple.

It works:-)

Thomas