Nordic UART Service (NUS) is a pretty handy way of implementing a serial data transfer service over BLE. The nRF Toolbox on Android makes it very easy to test it, however I could not find any such program (or driver) for PC (any OS, any language) that could do the same.
I have looked around a lot, and have come to the conclusion that such a program doesnt exist, or isn't shared. If this is so then I would still be glad to see any example code on how to implement such a program.
It would be great if anyone could point me in the right direction. And of course, if anyone knows of any such programs do let me know.
Just to clarify, I do know that I can use nRF Connect to do something similar, however I cannot write a custom program with it, to handle and interact with the data transmitted. This is why i am looking for something that can be built upon. Of course it will be helpful to others as well.
You could use the nRFUart Example in the Master Emulator API (18.104.22.168).
See devzone.nordicsemi.com/.../ for changes needed to make it work.
Thanks for pointing towards Master Emulator API.
However Master Emulator API interacts with a nRF51 connected through UART. This is not much feasible to me as I am looking forward to use the built-in bluetooth device in my laptop.
I was able to do this using hcitool and gatttool on Ubuntu, which worked right out of the box, and was very handy. I was looking forwards to something similar on Windows.
In that case, you need to use the Windows GATT support:
Note that this requires Windows 8 or later, I think.
Right! I was able to improvise my search terms based on the link you shared, and was able to find a demo program here: https://code.msdn.microsoft.com/Bluetooth-Generic-5a99ef95
This is good enough for me to get started in building an application for my needs.