gobot icon indicating copy to clipboard operation
gobot copied to clipboard

[question, ble] go ble-serial

Open vlappa opened this issue 1 year ago • 2 comments

Hi, I want to make something like this, but then in Go: https://github.com/Jakeler/ble-serial/blob/a429060faf6dfe38615af28712afa8ee4ef271fd/examples/ble_standalone.py#L5

Is it possible with this library? Any examples available for using the SerialPort?

What are address, rid and tid here? https://github.com/hybridgroup/gobot/blob/v2.1.1/platforms/ble/serial_port.go#L19

Or is there a better way to get data from bluetooth (using Linux)?

vlappa avatar Sep 05 '23 07:09 vlappa

Hi @vlappa , because the feature is inspired by https://github.com/monteslu/ble-serial, I assume the rid and tid are optional values for "transmitCharacteristic" and "receiveCharacteristic". See also the comment for Subscribe - usage of "rid" and the name of the write methode - usage of tid.

Hope this helps

gen2thomas avatar Sep 13 '23 16:09 gen2thomas

Please refer now to examples with usage of bleclient and serialport.

gen2thomas avatar Feb 12 '24 17:02 gen2thomas