I have arduino mega and BLE shield by redbear.
I tried the heartrate example contained in the nordic BLE sdk for arduino and it works as expected.
But i need to make a working example of Running Speed and Cadence service...
then...
I downloaded and installed nRFgo studio from nordic website, then i downloaded and installed the "Bluetooth developer studio" from the Bluetooth SIG website.
the developer studio allows to create the xml file for nRFgo studio.
To do this, i installed the plugin for arduino found on Bluetooth SIG website.
I just did the drag and drop (in the developer studio) to use the RSC, then i used the plugin to generate the xml file for nRFgo studio.
The generated files includes a .bat file that should be called to obtain the services.h file.
The name of the bat file is: generate_arduino_code.bat
note: I had to manually run the command line included in the .bat file, because the exe path was not in the system path. Anyway, at the end i obtained all the files:
runningspeedandcadence.ino
runningspeedandcadence.h
runningspeedandcadence.cpp
services.h
services.lock
ublue_setup.gen.out.txt
deviceinformation.h
deviceinformation.cpp
nrf8001.xml
Then i opened the .ino file on arduino and i tried to verify the project.
I obtained many errors caused by constants containing not allowed character "-"
I just replaced "-" with "_" in the entire project.
the original constants name were:
PIPE_DEVICE_INFORMATION_IEEE_11073-20601_REGULATORY_CERTIFICATION_DATA_LIST_SET
PIPE_DEVICE_INFORMATION_IEEE_11073-20601_REGULATORY_CERTIFICATION_DATA_LIST_SET_MAX_SIZE
Actually the Project can be verified without errors.
I uploaded it on the arduino mega (with the BLE shield on) and then, as suggested in the arduino plugin readme file (plugin for bluetooth developer studio), i tried to search the Bluetooth devices with my ipad with "nRF toolbox" app for ios.
Unfortunately no device can be found by the ipad.
note: flashing the heartrate example found in the nordic BLE SDK for arduino, everything work as expected, demonstrating that my setup for arduino is correct.