App - device connection in Android
Hi everyone!
I'm developing an app for Android 7 with unity 5. I need that app to send messages via bluetooth to a microchip that has its own bluetooth receiver (a RN41 from Microchip https://www.microchip.com/wwwproducts/en/RN41).
Doing this from the PC is not a problem. I use the SerialPort class and I can make the connection by just knowing the name of the bluetooth port that my PC assigned to the RN adapter when paired (usually the name is something like COM10).
The problem when applying this in Android is that I can't get the name assigned to the port in which the RN is connected. I can't see it anywhere in the settings menu, and when I use the SerialPort.GetPortNames() method, the names that appear are independent of the bluetooth (I've checked this by deleting the pairing between the tablet and the RN adapter and checking that the three names that that method returns are the same).
Anyone knows how can I make this connection? Even if I've to use other class rather than SerialPort.
Thanks in advance!