Curious if there's a way to get the currently connected device name and id from the library or do I have to store it myself after successfully connecting.
Right now connected() just returns true or false but I'm thinking it would be great if it returned the device object if it's connected or return false if it's not. This way you could still do a conditional like if (RNBS.connected()) { ... } but it would also allow you to display the currently connected Bluetooth device, etc.
Hi there. Great library.
Curious if there's a way to get the currently connected device name and id from the library or do I have to store it myself after successfully connecting.
Right now
connected()
just returnstrue
orfalse
but I'm thinking it would be great if it returned the device object if it's connected or returnfalse
if it's not. This way you could still do a conditional likeif (RNBS.connected()) { ... }
but it would also allow you to display the currently connected Bluetooth device, etc.Let me know what you think.
Thanks!