EspWiFi
TomoSoft
$20.00
(no ratings)
Date |
Price |
---|---|
Date |
Price($) |
08/14(2024) |
20.0 |
11/23(2024) |
20.0 |
Jump AssetStore
EspWiFi is Esp32 MQTT Interface AssetEspWiFi is an interface adapter between a single Windows PC and plural Esp32s via WiFi using MQTT communication. This adapter can quickly add plural Esp32s 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 Esp32, you write code in purchased assets into the Esp32 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:The package includes the Esp32 code that obtains x, y, and z data from the Esp32. You write this code to the Esp32 using Arduino IDE.Read x, y, and z data from the Esp32, convert x, y, and z data to byte array data type, and transfer that data to Unity using MQTT communication.The package also includes the Esp32 code that receives numerical data at the Esp32. You write this code to the Esp32 using Arduino IDE.The package includes the Unity 3D object ‘vase’ for displaying the x, y, and z and Inputfield / Dropdown / Button for sending numerical to the Esp32.The Esp32WiFiSampleCode describes receiving the x, y, and z data from Esp32 and sending the numerical data to Esp32.EspWiFi on the Windows PC works as Publisher and Subscriber, also Broker. EspWiFi on the Esp32 works as a Publisher and Subscriber.Refer to ‘EspWiFi Quick Start’ for how to set up the EspWiFi In detail.Refer to ‘EspWiFi Design Tips’ to rewrite the Esp32 code and the Esp32WiFiSampleCode.Refer to ‘Technical details’ below for MQTT communication in EspWiFi.Requirements:Unity 2022.3 or newerWindows PC (Windows 10 or 11) on Network including WiFi Router.Esp32 (not work Esp32 S3 or Esp32 C3)Arduino IDE, for details, refer to ‘Arduino IDE v2 for Esp32’ for how to set up the development environment.ESPWiFi 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.EspWiFi uses MQTT communication between a single Windows PC and plural Esp32s using the network. The Windows PC connects to the network using LAN or WiFi. Each Esp32 connects the network using WiFi. EspWiFi on the Windows PC works as Publisher and Subscriber, also Broker. EspWiFi on the Esp32 works as a Publisher and Subscriber. Workflow is as follows.Unity with EspWiFi on the Windows PC inputs moving data as Subscriber from Unity topic.EspWiFi on the Esp32 outputs moving data as Publisher to Unity topic.Unity with EspWiFi on the Windows PC outputs command data as Publisher to Esp32 topic.EspWiFi on the Esp32 inputs command data as Subscriber from Esp32 topic.Moving data is for Horizontal or Vertical movement depending on Esp32 No.Command data is for ESP32 No and two input field data.