BLE-Scanner icon indicating copy to clipboard operation
BLE-Scanner copied to clipboard

Compilation errors

Open TobiasBonhoeffer opened this issue 1 year ago • 3 comments

I also have problems compiling.

(1) It seems to me that the library NimBLE-Arduino has been ugraded such that it is not compatible with teh current sketch anymore. It throws all kinds of error. I have fixed that by downgrading to a pre 2.0 Version. (2) But now I get the following error where I would need help

/Users/tobi/Downloads/BLE-Scanner-main 2/BLE-Scanner/util.cpp: In function 'const char* TimeToString(time_t)':
/Users/tobi/Downloads/BLE-Scanner-main 2/BLE-Scanner/util.cpp:143:15: error: '_config' was not declared in this scope
  143 |   t += (long) _config.ntp.timezone * SECS_PER_HOUR;
      |               ^~~~~~~

exit status 1

Compilation error: '_config' was not declared in this scope

Can somebody comment/help

Thank you!

TobiasBonhoeffer avatar Dec 18 '24 20:12 TobiasBonhoeffer

I get the same error, unfortunately. Is there a fix?

ESP32-C3

WilliThomas avatar Jan 11 '25 10:01 WilliThomas

Fixed.

Added #include "config.h" in the util.cpp

WilliThomas avatar Jan 11 '25 13:01 WilliThomas

Thanks for the hint -- the fix will be included in the next release.

gromeck avatar Jan 12 '25 12:01 gromeck