8 years, 4 months ago.

Help with #if #endif...

In the BLE_Observer, what does this code? DUMP_ADV_DATA is user defined?

  1. if DUMP_ADV_DATA for (unsigned index = 0; index < params->advertisingDataLen; index++) { printf("%02x ", params->advertisingData[index]); } printf("\r\n");
  2. endif /* DUMP_ADV_DATA */ }

Thanks!

Question relating to:

a simple observer of advertisements. BLE, bluetooth

1 Answer

8 years, 4 months ago.

it is optional code which could be enabled for debugging.