WhitehawkTailor / I2C-sniffer

This code catches I2C communication by running on an ESP32 board that are connected to I2C BUS lines as a passive listener.
GNU General Public License v3.0
30 stars 16 forks source link

Compiling error #6

Open leotordo opened 1 year ago

leotordo commented 1 year ago

Hello, sorry but I'm newbie. I've these compiling errors

https://justpaste.it/2nu02

Any help? Thanks

WhitehawkTailor commented 1 year ago

Hi,

the link takes me to an empty page. What is the output you can see on the screen or in you log file? Just paste it here into the next comment.

leotordo commented 1 year ago

Hello, sorry. I solved the link issue. Try now I didn't paste it because is too long Thanks Stefano

Later I'll try to save the log file

leotordo commented 1 year ago

Here I saved all output messages

link

leotordo commented 1 year ago

Any news? Thanks Stefano

WhitehawkTailor commented 1 year ago

it seems to me that your environment cannot compile the code well. from the log: _loading library from C:\Users\Stefano\AppData\Local\Arduino15\libraries\ESP32homekit: invalid library: no header files found

It is possible that you use the official Arduino IDE and not something else like me. In this case you do not need the Arduino.h include. Just remove that line. see: https://github.com/WhitehawkTailor/I2C-sniffer#how-to-use-it

leotordo commented 1 year ago

I removed Arduino.h from code but nothing changed. The error _loading library from C:\Users\Stefano\AppData\Local\Arduino15\libraries\ESP32homekit: invalid library: no header files found is present in other code I used. It's about ESP32_homekit, I think it's not involved in compiling error of your code. Other my codes have this error and work fine.

I'm using origina IDE 2.1.1. What's your version?

I've to rename main.cpp in main.ino to compile with my IDE. Is it right?

Thanks Stefano

WhitehawkTailor commented 1 year ago

another issue could be that the selected board is not what you really use. Have you tried that very same board formerly with some example program, like LED blinking?

leotordo commented 1 year ago

yes. I wrote a lot of programs with this board. what about IDE version? I can search old version if needed Thanks Stefano

WhitehawkTailor commented 1 year ago

I work in VSCode with PlaformIO extension. I have little experience with Arduino IDE. Show me all the code you try to translate.