bluegrs / blueberry-pi

A wireless sensor glove to control Unity games.
1 stars 0 forks source link

Configuring Host IPv4 Address (server vs client) #6

Closed digitaldanny closed 5 years ago

digitaldanny commented 5 years ago

Goal

In order to make the client side blueberry-pi communicate to the server PC, have the boot-blueberrypi script request the server IP from the user.

Suggestion

Possibly switch client and server sides. Make the blueberry-pi the server so that it can broadcast an invitation through the router and the PC can reply back to the IP address if it wants to connect the device.

digitaldanny commented 5 years ago

Also update the blueberry-pi chart to reflect this change we end up switching the server and client sides.

digitaldanny commented 5 years ago

Sides switched. Also decided to stop using the client side python scripts for socket communication. Instead, it will be faster to just do the socket scripting inside Unity with C#.

digitaldanny commented 5 years ago

Instead of asking the user for the Raspi's IP address, the Unity simulation automatically tries to connect to all IP addresses at the configured port until the Raspi eventually connects.