Hello,
I looked around in the forums but didn’t quite find the same Issue that I’ve been trying to figure out. I am currently running an Feather M0 Bluefruit LE with a Airlift FeatherWing ESP32 WiFi Coprocessor.
I am running the latest blynk library in the arduino IDE
I have been trying to use the example code to get the project to initially connect to the Blynk app but whenever I try to upload the code, I get the error “This code is intended to run on an ESP32 platform! Please check your tools->board settings”
I am still fairly new to WiFi programming so I just would like some guidance on how to get this project to connect. Does it have to do with trying to upload to the Bluefruit M0 LE that’s causing the problem? The wifi coprocessor doesnt have its own programming port and receives all of its info from the Bluefruit.
I have included the code I have tried to upload below.
Any help offered on this topic will be greatly appreciated.
thank you!
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
Sketch generator: http://examples.blynk.cc
Blynk community: http://community.blynk.cc
Follow us: http://www.fb.com/blynkapp
http://twitter.com/blynk_app
Blynk library is licensed under MIT license
This example code is in public domain.
*************************************************************
This example runs directly on ESP32 chip.
Note: This requires ESP32 support package:
https://github.com/espressif/arduino-esp32
Please be sure to select the right ESP32 module
in the Tools -> Board menu!
Change WiFi ssid, pass, and Blynk auth token to run :)
Feel free to apply it to any other example. It's simple!
*************************************************************/
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
/* Fill-in your Template ID (only if using Blynk.Cloud) */
//#define BLYNK_TEMPLATE_ID "YourTemplateID"
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "zbNzSvc_XmyaLnPjGA6JoIgbbEAvZbJQ";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "ATTxqVbVbA";
char pass[] = "nuwtbc+w?frw";
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}