How can I make a connection with two android devices by bluetooth in a game?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By leonardo

What steps should I follow to make a bluetooth connection for a game if someone could guide me please?

I was wondering, have you found a solution for this yet?

Allan | 2018-11-23 10:27

:bust_in_silhouette: Reply From: rolfpancake

As far as I know there is no ready-to-use Bluetooth implementation available in Godot. You can try to build it yourself with the PacketPeer class as stated in the High level multiplayer tutorial but I guess this would be a very hard task.

There is an external module called GodotBluetooth but I’m not sure if this is ready yet.

Thanks for the help

leonardo | 2018-02-08 04:25

I’ve pimped the code of the repos linked in the first answer.
It’s a forke of the repos and I’m using it for my Game BlueTooth Poker 8

links
Repos
Game

DisD | 2022-08-09 16:30

How did you build the .aar file? I downloaded the project but I can’t find how to get this file as output from Android Studio.

Edit: I just found that there is a .aar file in the git project. But can you explain how to enable the plugin in the export for Android options?

Edit 2: The plugin section doesn’t show up in the Options tab when I try to export the project

Edit 3: Yeah, a tutorial how to use the .aar file, please

viniciused26 | 2022-11-21 04:24