私はble 4.0ドングルを備えた2つのラズベリーパイを持っています。ラズベリーで blue-5.9 をコンパイルしました。すべてが TI の Sensortag で正常に動作します。
次に、両方のデバイスを BLE 経由で接続し、一方から他方に文字列を送信したいと考えています。
オンラインで見つけたものすべてでかなり迷っています。
私へのリンクや短い例はありますか?
私はble 4.0ドングルを備えた2つのラズベリーパイを持っています。ラズベリーで blue-5.9 をコンパイルしました。すべてが TI の Sensortag で正常に動作します。
次に、両方のデバイスを BLE 経由で接続し、一方から他方に文字列を送信したいと考えています。
オンラインで見つけたものすべてでかなり迷っています。
私へのリンクや短い例はありますか?
I think you're misunderstanding how BLE works. It's not like opening a TCP socket or a serial connection where you can just pass a string in and the other end gets the string.
I think your 2 options would be:
pack the string into a directed advertising packet for the destination machine to receive.
set up a GATT server on the first machine and have the second machine connect and retrieve the string you want to pass along
Either way, though, you're limited to fairly short strings.
Unfortunately I don't have any sample code or examples to point you too.