Hello,
How to switch from S110 to S130 with mbed ?
Thank you.
Hello,
How to switch from S110 to S130 with mbed ?
Thank you.
mbed is already using S130, but the API doesn't support the central role yet. I does support the observer role, you can scan for advertising packets:
startScan(void (*callback)(const AdvertisementCallbackParams_t *params))
but you cannot connect:
virtual ble_error_t connect(const Address_t peerAddr,
Gap::AddressType_t peerAddrType,
const ConnectionParams_t *connectionParams,
const GapScanningParams *scanParams) {
return BLE_ERROR_NOT_IMPLEMENTED; /* default implementation; override this API if this capability is supported. */
}
You can find some examples here, BLE_Observer scans for advertising packets.
Edit 16.07.2015:
I believe it is on the roadmap, please see this. In general questions about mbed is better suited for the mbed forums.
Hello,
Thank you for your response.
How to know that it use S130 ? (most of mbed use nRF51822.lib and BLE_API.lib so it's not very transparent)
Is there any roadmap about S130 with mbed ?
Is S130 softdevice in the binary or i have to program it separatly on my nRF51 ?
Next time I would appreciate if you would avoid asking questions in an answer. Thank you.
Ok sorry. I was too much enthousiast :-) Thank you for your help.
Np :) I hope you noticed that I edited my answer :)