Scanning for Bluetooth in Unity - c#

I am trying to make a app in Unity and I am struggling to find any good resources on how to scan for Bluetooth (BLE) device.
Basically all I want to achieve now is to just press a button that calls a function that can scan for devices and list them along with the respective rssi.
I managed to do this in Ionic but it is proving a lot more difficult in Unity. So I am just wondering if someone has managed to do something like this before.
Also, is there a way to integrate a unity app into an ionic project?
Thank you

Related

Are there any resources that show the implementation of a webcam as a windows application for AR foundation or Vuforia?

I am trying to connect a webcam into Unity and track faces. This is for placing 3d models such as "vtuber" faces or a whole character body as an AR implementation into the webcam. I don't necessarily want to use it for a mobile app (it is made to be used in Windows). Btw I am not good at C# scripting myself. Are there any guides or tutorials that can help me understand how it is done? Hope you understood what I am getting at. Any help is appreciated!

Android Game Pad Feasibility

So, I have seen various posts regarding the use of an android phone as a keyboard and as a game pad. I'm actually working on a project that does just that. As you could imagine, I've hit a massive roadblock when it comes to sending the signal from the phone to the PC via USB.
I decided to use unity as the base of this project. I have a functioning GUI and I have some simple code to basically open the port, push through the Serial.write command, and close the port. I also understand that is code will not do me any good without the PC I'm connected to via USB recognizes the phone as a source of input.
That's where I'm stuck.
I've seen posts that involve explanations of how USB works, the different hex codes mapped to keys, ideas of modifying the kernel, third party programs, and third party devices, but nothing concrete on how to move forward in a video game on my PC by simply tapping the screen on my phone. It should be simple right?
So, I'm asking whether or not this project is worth pursuing for the few months I have left to do it or should I consider pivoting to a project that's a little closer to my pay grade(free)?
Although I am not sure if this post is a SO standard question, my train of thought would be to use bluetooth instead of using USB, client-server etc. as they are plagued by problems. While there maybe a certain lag in using bluetooth, programmatically this should be easily achievable. This maybe of interest to you: https://github.com/temach/HIDInterface

How to get WiFi-Signal Strength with Unity engine and C# on Android?

I need the WiFi strength of nearly access points to triangulate the position of the Android device user and show him the part of the building, he is located at the moment. It's for a location based game for new students at my university. There are easy ways with Java or Xamarin and C#, but i couldn't find a way to solve the problem using the Unity engine and C#. It there a way to get it?
I have a complete Android solution in Java from a fellow student and i tried to use AndroidJavaObjects to use that in my program, but without success. It seems to be too complex for that. Are there maybe other ways to use that Java Android code in Unity?
Thanks in advance for the help.

Camera Capture with External Camera with C#

I have a Nikon D90 connected to my laptop via USB. I need to be able to simply trigger the camera to capture an image via C#.
This seems like it should be an easy problem but I have been drowning trying to figure it out...
Can anyone point me in the right direction?
You would need Nikon's SDK to accomplish that. What you're after is a remote control function for your camera. Nikon is offering their SDK for free but there's a lengthy T&C, a learning curve and a hunt for the C# wrapper so it's not a trivial task.

Voice over wifi between android phones in C#

I want to develop an application for voice calls between two android devices on my home network (WiFi). I'm new to programming so don't really know where to begin, I have researched around but cannot find anything that fits what I need to do.
The application has to be written in C# as I have a basic understanding of that language and it's the language I want to expand my knowledge in. I'm using MonoDevelop which allows the creation of android apps through C#.
The call will be peer to peer so very basic and no security or encryption will be necessary in these early stages of development.
All help will really be appreciated!
I'd start with this link at code project:
http://www.codeproject.com/Articles/138484/Simple-SIP-VOIP-based-phone-in-C
You will have to adapt it to android, but again is a probably a good starting point to understand how to do voice over IP.
The big things that may differ on android are:
User interface
method to get microphone input
method to play audio output
access to the IP stack
but the basic (encoding, decoding, etc...) should be there.

Categories

Resources