NimBLE-Arduino icon indicating copy to clipboard operation
NimBLE-Arduino copied to clipboard

Send data to a specific device in the characteristic

Open roysG opened this issue 2 years ago • 6 comments

I am trying yo send sensitive data to specific device id in the characteristic. But as i test it, i can see the sensitive data also from others devices that connected to the same service/characteristic.

Is there any option to isolated the transferd data just for the specific device?

roysG avatar Jul 28 '22 18:07 roysG

If other devices are connected and all writing to the same characteristic then there is nothing from the client side that could be done. However on the server side it may be able to save the written data and the address of the client and store it separately in from the onWrite callback.

h2zero avatar Jul 29 '22 00:07 h2zero

Ok, in case i know the adreessId of the device. do i have the ability to send just him messages?

roysG avatar Jul 29 '22 04:07 roysG

Sorry, not sure if I follow what you're asking. I'm guessing the esp32 is acting as a server and you want to notify a specific client only? This could be done but the capability is not implemented in the library at this time.

h2zero avatar Jul 29 '22 23:07 h2zero

Hello guys, I'm also looking for this functionality. Notifying a single client will allow to create more easily request/response pattern. It would be of great benefit. :)

JulienLecoq avatar Aug 17 '22 20:08 JulienLecoq

This should be possible without too much trouble, I'll add this as a future feature.

h2zero avatar Aug 17 '22 23:08 h2zero

Cool ! :)

JulienLecoq avatar Aug 18 '22 12:08 JulienLecoq