upasanas1403 Ответов: 1

Как запустить эту программу?


I have a sensor and a Bluetooth dongle( HC 05) with SPP protocol. We have to connect the sensor to the PC via Bluetooth in which we made our game in unity 3D. The problem now is i have to write a program for the Bluetooth so that 1)unity search for the sensor ( the sensor will be having a mac address and we will be having 5 sensors, other than those 5 sensors it will not allow any other sensor to be paired with, it will reject the pairing). 2) after searching for the sensor it will start pairing with PC in which our unity is installed. i have to write Bluetooth programming, i only know a little bit of C language only. I tried searching online but the programming is for Bluetooth API for android only. I am new to this problem, so please help me from the basics. It would be of great help. Thank you.


Что я уже пробовал:

я пробовал искать везде , но коды, которые я нашел, были из android Bluetooth API, и у меня мало знаний об этом, поэтому мне нужно начать его с самого начала. как мне это сделать?

1 Ответов

Рейтинг:
8

CPallini

5.

Maciej Los

Спасибо, Карло.

upasanas1403

Итак, я должен начать со знания того, как работает Bluetooth, а затем написать код на C# для отправки и получения файлов с датчика и ПК?

Maciej Los

Ну конечно же!