Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 11 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
Thanks worked !
posted by Mohammed Taher 09 Apr 2017