jeanmatthieud / nrf51822-low-power-sensor

A low power sensor based on the NRF51822 chip and the Arduino framework.
https://www.iot-experiments.com/nrf51822-and-ble400/
15 stars 1 forks source link

Identifier "BLEEirData" is undefined #2

Closed flatplanetpl closed 3 years ago

flatplanetpl commented 3 years ago

Hello!

Thanks for awesome example! I can't compile this. From your example the additional advertising data are interesting... So: src\main.cpp: In function 'void gpio_init()': src\main.cpp:45:3: error: 'attachInterruptLowAccuracy' was not declared in this scope attachInterruptLowAccuracy(digitalPinToInterrupt(PIN_SW_SENSOR), sensorValueChanged, FALLING); ^~~~~~ src\main.cpp:45:3: note: suggested alternative: 'attachInterrupt' attachInterruptLowAccuracy(digitalPinToInterrupt(PIN_SW_SENSOR), sensorValueChanged, FALLING); ^~~~~~ attachInterrupt src\main.cpp: In function 'void updateAdvertisingScanData()': src\main.cpp:154:3: error: 'BLEEirData' was not declared in this scope BLEEirData scanData[scanDataSize]; ^~~~~~ src\main.cpp:154:3: note: suggested alternative: 'srData' BLEEirData scanData[scanDataSize]; ^~~~~~ srData src\main.cpp:157:3: error: 'scanData' was not declared in this scope scanData[0].length = strlen(g_localName); ^~~~ src\main.cpp:157:3: note: suggested alternative: 'srData' scanData[0].length = strlen(g_localName); ^~~~ srData *** [.pio\build\waveshare_ble400\src\main.cpp.o] Error 1

I've remove anchor (#gpio-low-accuracy-interrupt) from platform url because it wont work.

Do you have idea what I should to correct?

Thanks! Damian

flatplanetpl commented 3 years ago

I had to update BLEPheripheral. Works great!