Connect multiple devices to one device via Bluetooth

前端 未结 7 651
夕颜
夕颜 2021-01-30 11:27

I would like to create a game, where you must connect multiple devices (4+) to a main device (ex. a tablet) via Bluetooth. There would be two apps, a main one to which all data

7条回答
  •  执念已碎
    2021-01-30 11:44

    Yes you can do so and I have created a library for the same.
    This allows you to connect up-to four devices to the main server device creating different channels for each client and running interactions on different threads.
    To use this library simple add compile com.mdg.androble:library:0.1.2 in dependency section of your build.gradle .

提交回复
热议问题