This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ble_HID_template ERROR

Im getting the following error ,when I try to compile the example ble_HID_template from the latest Arduino Nordic Release:

ble_HID_template.ino: In function 'void aci_loop()':
ble_HID_template:579: error: 'SETUP_SUCCESS' was not declared in this scope
C:\Users\nishant\Downloads\arduino-1.0.3\libraries\Nordic_BLE/lib_aci.h: In function 'void setup()':
C:\Users\nishant\Downloads\arduino-1.0.3\libraries\Nordic_BLE/lib_aci.h:123: error: too many arguments to function 'void lib_aci_init(aci_state_t*)'
ble_HID_template:658: error: at this point in file

How to cope up with that?

Parents
  • OK I'm now able to compile it BUT with the following amendments(Please clarify what all I loose because not using these elements).

    I removed the false, parameter from the lib_aci_init(); method

    [code type="XML"]//The second parameter is for turning debug printing on for the ACI Commands and Events so they be printed on the Serial lib_aci_init(&aci_state);[/code]

    AND,

    commented out the following;

    [code type="XML"]if(setup_required) { if (SETUP_SUCCESS == do_aci_setup(&aci_state)) { setup_required = false; } }[/code]

Reply
  • OK I'm now able to compile it BUT with the following amendments(Please clarify what all I loose because not using these elements).

    I removed the false, parameter from the lib_aci_init(); method

    [code type="XML"]//The second parameter is for turning debug printing on for the ACI Commands and Events so they be printed on the Serial lib_aci_init(&aci_state);[/code]

    AND,

    commented out the following;

    [code type="XML"]if(setup_required) { if (SETUP_SUCCESS == do_aci_setup(&aci_state)) { setup_required = false; } }[/code]

Children
No Data
Related