Hi Blynkes
I trying to run my project on Arduino Mega connected to W32_ETH01 as NCP (Wired LAN).
- W32_ETH01 is connected to UART_1 on MEGA.
- W32_ETH01 is flashed with recommended bin file: BlynkNCP_wt32_eth01.flash.bin
- 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
”);
}
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();
}