Page 1 of 1

Strange errors when adding Bluethoth Nimble to my app

Posted: Fri Dec 23, 2022 2:03 pm
by lg.lindstrom
As the title says. I have a big applicatioen and decided to att BLE.

In the example directory of ESP-IDF there is a nimble folder with a spp_server app.
I followed the example and added more or less a copy to my application.

Compiling I getting lots of errors simular this...

Code: Select all

esp-idf/components/bt/host/nimble/nimble/porting/nimble/include/os/os.h:34:19: error: expected unqualified-id before '(' token
   34 | #define min(a, b) ((a)<(b)?(a):(b))
      |                   ^

This is a file I not even be close to change...

My guess is that the configuration have gone wrong,,, but which parameter ???