Asset 'WiFi for Pi' is an interface asset between a single Windows PC and plural Raspberry Pis via WiFi using MQTT communication. This asset can quickly add plural Raspberry Pis to your game as a gamepad ― no code required! To use the sensors device (gyro, accelerometer, GPS, etc.) and the display panel (LED, LCD panel, etc.) on the Raspberry Pi, you write code in purchased assets into the Raspberry Pi and create Unity scripts by referencing sample code in purchased assets. Thereby you can use the sensor device data and the display panel data in your game.
Features:
- This asset includes the Raspberry Pi code that obtains x, y, and z data from the Raspberry Pi. You write this code to the Raspberry Pi using Arduino IDE.
- Read x, y, and z data from the Raspberry Pi, convert x, y, and z data to byte array data type, and transfer that data to Unity using MQTT communication.
- This asset also includes the P Raspberry Pi code that receives numerical data at the Raspberry Pi. You write this code to the Raspberry Pi using Arduino IDE.
- This asset includes the Unity 3D object ‘vase’ for displaying the x, y, and z and Inputfield / Dropdown / Button for sending numerical to the Raspberry Pi.
- The PiWiFiSampleCode describes receiving the x, y, and z data from the Raspberry Pi and sending the numerical data to the Raspberry Pi.
- This asset on the Windows PC works as Publisher and Subscriber, also Broker. This asset on the Raspberry Pi works as a Publisher and Subscriber.
- Refer to ‘Quick Start of WiFi for Pi’ for details on how to set up this asset.
- Refer to ‘Design Tips of WiFi for Pi’ to rewrite the Raspberry Pi code and the PiWiFiSampleCode.
- Refer to ‘Technical details’ below for MQTT communication in this asset.
Requirements:
- Unity 2022.3 or newer
- Windows PC (Windows 10 or 11) on Network including WiFi Router.
- Raspberry Pi 4(including Raspberry Pi Zero W) or higher
- This asset includes third-party libraries under their respective licenses, which are scribed in Third-Party Notices.txt.
In case of any trouble, contact me by email so I can assist you.