3 years, 7 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);
    pc.printf("SimpleChat Init \r\n");



I found a solution (see [])

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
Comment on this question
Be the first to answer this question.

To post an answer, please log in.