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.
6 years, 9 months ago.
SimpleBLE error, pls help
Hi,
I'm having troubles with the SimpleBLE library. Every time I try to compile the Project, I'm getting 2 errors:
- Error: Too few arguments in function call in "main.cpp", Line: 9, Col: 16
- Error: Class "SimpleBLE" has no member "waitForEvent" in "main.cpp", Line: 11, Col: 14
The project consists of example code from the homepage of SimpleBLE https://os.mbed.com/teams/mbed-x/code/SimpleBLE/
#include "mbed.h" #include "SimpleBLE.h" SimpleBLE ble("DEVICE_NAME"); // second argument is the advertisement interval (default: 1000 ms.) // variables here! int main(int, char**) { ble.start(); while (1) { ble.waitForEvent(); } }
I'm using X-NUCLEO-IDB05A1 so I imported the X-NUCLEO-IDB0XA1 library. mbed, SimpleBLE and BLE_API were imported as well. I'm using the L476RG board.
Am I missing something? Please help