Connecting ML headset to PC via remote routing

Give us as much detail as possible regarding the issue you’re experiencing:

Unity Editor version (if applicable): 2022.3.11f1

ML2 OS version:1.5.0 using open XR though MLSDK version: 1.9.0

I want to connect the PC and ML headset together so that when I post/get https requests made from this code provided below, I will run a python script and return an output back to the ML and Unity project. We have used a personal hotspot so far to replace the IP address, but we are trying to run this on a larger scale for longer time periods and cannot use the hotspot for that long. I wanted to connect the ML and PC via USB-C tethering using this manual. I unfortunately do not have an account to link the two. I have a router as well that I can use to connect, but without WiFi. I do not have an ethernet cable to connect the ML to the router. If anyone has a solution to the problem that might not require too much spending on extra parts, please let me know. Or, let me know if there is a solution and I will buy the parts necessary to solve the problem.

string gazeDataString;

public TextMeshPro m_TextComponent;

public async void GetCaptions()

{

    //startRecording += 1;

    Debug.Log("get captions");

    //m_TextComponent = GetComponent<TMP_Text>();



    // Change the text on the text component.

    //m_TextComponent.text = "Some new line of text.";

    var client = new HttpClient();

    var request = new HttpRequestMessage(HttpMethod.Post, "http://169.254.161.11:8000/optimization/upload");

    // Convert the gazeData list to a single string (you might want to format it differently)



    gazeDataString = string.Join("\\n", alertSpawner5.buffergazeData);

    //gazeDataString = string.Join("\\n", alertSpawner5.gazeData); // Join with newline characters from alertspawner, 

    //if need to clear data, can find a way to do that

    

    // Create a StringContent object with the string data

    var stringContent = new StringContent(gazeDataString, Encoding.UTF8, "text/plain"); // Adjust encoding and content type if needed

    alertSpawner5.buffergazeData.Clear();

    // Set the Content property of the request to the StringContent object

    request.Content = stringContent;

    var response = await client.SendAsync(request);

    response.EnsureSuccessStatusCode();



    // Txt file content

    responseJson = await response.Content.ReadAsStringAsync(); //this reads the string, if it is just a cog load variable change if needed

    cogLoadReturnedValue = float.Parse(responseJson); //refer to this in the optimization function

    //m_TextComponent.text = $"cog load returned value {cogLoadReturnedValue}";

    // ReadStringInput(responseJson);

    //var authResponse = JsonUtility.FromJson<videoInfo>(responseJson);

    //textMesh.text = authResponse.captions;

    //speechBubbleText.text = authResponse.captions;

    //startRecording += 1;

    Debug.Log("COUNT BEFORE: " + alertSpawner5.gazeData.Count);

    //WriteString(gazeDataString);

    alertSpawner5.buffergazeData.Clear();

    Debug.Log("COUNT AFTER: " + alertSpawner5.gazeData.Count);

    //could technically add updateoptimization here

}

Hello, I wanted to say that I have found a solution and just used the Magic Leap’s internal hotspot to connect to my computer. I wanted to ask a follow up question about how much data the ML device has?