lh/20250429 #9

Merged
Ghost merged 2 commits from lh/20250429 into main 2025-04-30 12:21:56 +09:00
Collaborator
No description provided.
lh added 2 commits 2025-04-30 12:18:11 +09:00
Update MQTTManager.cs
All checks were successful
Code Review / code-review (pull_request) Successful in 6s
b664497c79
webmanager
All checks were successful
Code Review / code-review (pull_request) Successful in 8s
60eae20b92
Author
Collaborator

Raktbeej Code Review:

Summary:

The code changes you provided are modifications to a Unity project. The changes include the addition of new files and modifications to an existing one. Here’s a brief breakdown of the changes:

  1. New Files Added:

    • WebConfig.json in Assets/StreamingAssets/ - This JSON file contains server configuration details like host, port, and accessToken.
    • BaseSimulationMessage.cs in Assets/WorkSpace/LH/ - This file defines a serializable C# class that models a base simulation message used in the project.
    • WebConfig.cs in Assets/WorkSpace/LH/ - This file defines classes for handling web configuration, including WebConfigList and WebConfig.
  2. Changes in Existing Files:

    • MQTTManager.cs in Assets/WorkSpace/LH/:
      • Added a new field basemessage of type BaseSimulationMessage.
      • Added properties to handle MQTT topic subscription (_topic and topic).
      • Added a method UnsubscribeTopic to handle unsubscribing from a topic.
      • Modified existing methods to integrate topic property.
      • Modified the OnMessage method to deserialize incoming MQTT messages into a BaseSimulationMessage object.
  3. Meta Files:

    • .meta files are Unity-specific metadata files that store information about assets such as GUIDs. New meta files were added corresponding to the new C# files and JSON configuration to ensure Unity can properly reference and manage these resources.

These changes appear to be about integrating MQTT functionality within a Unity project, handling simulation messages, and managing configuration details via JSON. Adjustments to MQTTManager enhance the MQTT subscription model and incorporate deserialization of messages into structured types.

Raktbeej Code Review: ## Summary: The code changes you provided are modifications to a Unity project. The changes include the addition of new files and modifications to an existing one. Here’s a brief breakdown of the changes: 1. **New Files Added:** - `WebConfig.json` in `Assets/StreamingAssets/` - This JSON file contains server configuration details like `host`, `port`, and `accessToken`. - `BaseSimulationMessage.cs` in `Assets/WorkSpace/LH/` - This file defines a serializable C# class that models a base simulation message used in the project. - `WebConfig.cs` in `Assets/WorkSpace/LH/` - This file defines classes for handling web configuration, including `WebConfigList` and `WebConfig`. 2. **Changes in Existing Files:** - `MQTTManager.cs` in `Assets/WorkSpace/LH/`: - Added a new field `basemessage` of type `BaseSimulationMessage`. - Added properties to handle MQTT topic subscription (`_topic` and `topic`). - Added a method `UnsubscribeTopic` to handle unsubscribing from a topic. - Modified existing methods to integrate `topic` property. - Modified the `OnMessage` method to deserialize incoming MQTT messages into a `BaseSimulationMessage` object. 3. **Meta Files:** - `.meta` files are Unity-specific metadata files that store information about assets such as GUIDs. New meta files were added corresponding to the new C# files and JSON configuration to ensure Unity can properly reference and manage these resources. These changes appear to be about integrating MQTT functionality within a Unity project, handling simulation messages, and managing configuration details via JSON. Adjustments to `MQTTManager` enhance the MQTT subscription model and incorporate deserialization of messages into structured types.
Ghost merged commit a78c97deb8 into main 2025-04-30 12:21:56 +09:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: UVCXR/Simulation#9