NordicSemiconductor / ble-sdk-arduino

MIT License
249 stars 97 forks source link

ble_proximity_template does not compile #9

Closed ghost closed 9 years ago

ghost commented 10 years ago

Hi, when I compile the ble_proximity_template from version 0.9.3 of the SDK I get these compilation errors:

ble_proximity_template.ino: In function 'void aci_loop()': ble_proximity_template:582: error: 'SETUP_SUCCESS' was not declared in this scope C:\workspaces\arduino\libraries\BLE/lib_aci.h: In function 'void setup()': C:\workspaces\arduino\libraries\BLE/lib_aci.h:132: error: too many arguments to function 'void lib_aci_init(aci_state_t*)' ble_proximity_template:677: error: at this point in file

It looks like aci_setup.h needs:

define SETUP_SUCCESS 0

and In ble_proximity_template.ino: needs:

lib_aci_init(&aci_state);

instead of

lib_aci_init(&aci_state,false);

Skjerve commented 10 years ago

Hi, Are you sure you are using the latest library (And remember that the old one should be removed from the libraries folder)? In the latest library, lib_aci_init looks like this: void lib_aci_init(aci_state_t *aci_stat, bool debug);

ghost commented 10 years ago

I had another copy of the BLE folder lurking in My Documents\Arduino and it seems the Arduino SDK looks there first before it looks at the libraries folder in your sketchbook location. So yes, I was using the wrong library though I didn't know it. Thanks for the super-fast response btw :-)

Skjerve commented 9 years ago

No problem, closing issue.