Problems faced and their Solutions - LakshBhambhani/Swiffee-Minikame-Simulator GitHub Wiki

1. Delay in sending an "OK" response back to the client

There was a slight delay(1.2 seconds) between sending a request to the server and receiving an OK back from the server as Raspberry Pi switched to doing it's IO Job after receiving the request.

Solution: Used Multithreading to create a new thread that does it's IO job and the other thread returns an "OK" back to the client. Stack Overflow

2. User could not see Xbox map until they exited the Xbox Listener Application

We used multithreading to open a new thread that repaints the application that displays the Xbox map and also listening to xbox in the same thread which helps us show the users how to control the bot while they control it

3. If local server runs, Simulator window won't run

Multithreading had to be used again to run the local server in a different thread and running the Simulator window GUI in another thread which runs both the threads simultaneously.

⚠️ **GitHub.com Fallback** ⚠️