8 years, 4 months ago.

Can't compile SimpleControls demo for ReadBearLab nRF51822

I get this compiler error when trying to compile the freshly imported demo:

Error: No instance of overloaded function "BLE::onDisconnection" matches the argument list in "main.cpp", Line: 191, Col: 10

...
int main(void)
{   
    Ticker ticker;
    ticker.attach_us(m_status_check_handle, 200000);
    
    ble.init();
    ble.onDisconnection(disconnectionCallback);
    ble.onDataWritten(WrittenHandler);  
    
    pc.baud(9600);
    pc.printf("SimpleChat Init \r\n");

...

UPDATE:

I found a solution (see [https://github.com/evothings/evothings-examples/issues/168])

Because of a change of the BLE API Line 74 in main.cpp has to be changed into this:

void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)

Sincerely, FB

Question relating to:

SimpleControls works with the BLEController iOS/Android App. The mbed's pin can acts as DIGITAL_IN, DIGITAL_OUT, PWM, SERVO, ANALOG_IN. The sketch is to show you how to control the pin as … BLE, nRF51822, RedBearLab

Thanks worked !

posted by Mohammed Taher 09 Apr 2017
Be the first to answer this question.