Latest ble-driver-win version is 0.5.0 and supports SDK up to version 8.1.0.
s130 v2.0 needs SDK v11.0.0 (API changed).
So should I understand that ble-driver-win cannot be used here? Is a next release planned to support s130 v2.0?
Latest ble-driver-win version is 0.5.0 and supports SDK up to version 8.1.0.
s130 v2.0 needs SDK v11.0.0 (API changed).
So should I understand that ble-driver-win cannot be used here? Is a next release planned to support s130 v2.0?
Perfect (I compiled 0.5.0 for win64 myself from github, but as it's really common platform, it makes sens for you to provide the binaries). Thanks for the good work!
Hi Per, I downloaded the driver from github.com/.../pc-ble-driver-js. Managed to compile it. However, did I miss something or did the API completely change? For instance sd_rpc.h does not provide the old sd_rpc_serial_baud_rate_set
function. Am I compiling the bad thing? If I change my code, is it likely to be compatible with next release? Will this be the same API (with minor changes)?
Yes, there are quite a few changes in the API. Among the important changes is adding support for connecting to multiple adapters at the same time. We have also cleaned up and changed how you set up the uart connection to the adapter enabling us to change transport layers.
For an example on how to use this, you can check out the implementation of out Javascript bindings (in the same repos). To open a uart connection to a device, follow the implementation found here: github.com/.../driver.cpp Line 646 to 649 does the actual setup. In that folder, you can find implementations of most of the S13x v2.0. As it is bindings for Javascript, most of the code is about handling marshaling of variables from C to JS.
We have not planed any changes to the API, so if you update, you will most likely be compatible with the next release.
Thanks for the help, I'll try that. But with so many changes in the API (I see sd_ble_enable takes much more parameters than it used to) and no C example, I doubt I'll end up with something stable....anyway, I'll try and if I fail I'll have to wait for the next driver official release!