How to include Blynk in multiple files?

Blink version: 1.3.2
Board: Arduino MKR Wifi 1010

What is the recommendation for including Blynk in header files or other cpp files? I tried this in a header file and I get the following error.


#ifndef LOGGER_H
#define LOGGER_H

#include <Arduino.h>
#include <BlynkWiFiCommon.h>

class Logger
{
public:
  Logger(Stream *stream, BlynkWifiCommon *blynk);
};

#endif // LOGGER_H

I get Compilation error: BlynkWiFiCommon.h: No such file or directory

More information required.

I suggest you read this topic then amend your post to provide the required information…

Pete.

Thanks Pete. Updated

:rofl: :rofl: :rofl:

Very constructive…

The topic I linked to asks you to provide information in 14 different categories. As far as I can tell, you’ve not addressed a single one of those categories.

I could start asking you questions about the background to your question, hardware, library versions, your entire sketch etc etc.
Or, I could point you to a topic that asks you to provide the required information. I did the latter, and you responded by adding a few extra words and a screenshot, which tells me nothing that I need to know.

If you want to be helped then you have to start by helping us to help you.
You clearly aren’t interested in doing that, so I’ll leave you to figure it out yourself.

Pete.

I’m asking a straight forward question about the library in my post. The topics in that post aren’t even relevant to my issue.

full model of your hardware, like ESP32 Devkit V1;

Provided

attach logs in serial monitor of IDE, like:

My sketch won’t compile. There is no serial data to monitor

provide your full sketch (remove AuthToken, WiFi credentials, etc.)

provided

also provide a screenshot of the error in the output if there is an error

provided

Specify your server,

Irrelevant

  1. If you have a problem with the mobile app

I don’t

If you have a problem with the web console, please provide:

I don’t

  1. Also, if possible, please attach

Screenshot provided

  1. If you have a bug, please provide steps to reproduce it if possible.

Not a bug

  1. Also please write your plan, like FREE, MAKER 10,20, PRO 40,100,500,1000

Free

I’m happy to provide any other information. Not trying to be difficult.

it is

#include <Adapters/BlynkWiFiCommon.h>

Thanks this worked