[What you are trying to achieve and you can't?]
I have three files.
a.ino
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = "TBdf0G68EC6WkVe9ZJ6jiR81tyOv0BpM";
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
BLYNK_WRITE(V1)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
}
void setup()
{
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
b.cpp
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
BLYNK_WRITE(V2)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
// process received value
}
c.cpp
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
BLYNK_WRITE(V3)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
// process received value
}
Expected Result
[What are you expecting to happen as the consequence of above reproduction steps?]
Successful compiling for board ESP32 Wrover Module.
Actual Result
[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]
Blynk library version: [0.6.1] IDE: [Arduino] IDE version: [1.8.10] Board type: [ESP-WROVER-KIT] Additional modules: [null]
Scenario, steps to reproduce
[What you are trying to achieve and you can't?] I have three files. a.ino
b.cpp
c.cpp
Expected Result
[What are you expecting to happen as the consequence of above reproduction steps?] Successful compiling for board ESP32 Wrover Module.
Actual Result
[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]