-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query IP of wifi module #288
Conversation
…iven the name filename TODO: warning/confirmation about overwriting file
Fix making a new patch (stored in RamDisk volume) Playing_patch also stored in open patch list
Notify user of error if file name exists in open files
Working on this now. It displays the IP or "not connected" if M4 reports none. It would be nice to also somehow distinguish between "No wifi module" vs. "No wifi signal". Because if the UART connection to the Wifi module were to become disrupted, Maybe we need a separate interface like |
This now distinguishes between no response of the request and not connected to the network. After everything is up and running I can connect/disconnect the wifi module or turn off/on the access point and it shows the correct state in the gui. The only thing that is missing is that the wifi module hangs on startup until it gets connected to a network. But this is will show as no module connected. So I need to make the connection attempt a separate async task. Also the the gui could be refined (should probably show "no expanders" again when the wifi module gets disconnected) |
This will profit from #294 |
Cool. It works on firmware, but compilation fails for the simulator because std::expected is not supported: We could upgrade the minimum version of clang/gcc required I suppose? Or roll our own std::expected |
The simulator build still needs to be set to c++23 (also with a recent compiler) but yes, ubuntu 22.04's gcc doesn't have that feature. I see that 24.04 is available in beta (but not yet set to Since this project is still going to run for some time I would say it makes sense to make gcc12 (and |
Clang 16 and Apple Clang 15 support std::expected. Our README states that clang 14 or later is required. It already requires gcc 12 or later, so that should be fine. But for anyone using clang 14, 15, or Apple Clang 14 would need to update. I think is the direction to go, but I don't want to shock any other devs. Let me ask around... |
Ok. I have this prepared in #298 |
This is working now |
Update wifi patch list when patch storage changed
Closed in favor of #309 |
This adds a separate logical channel in the serial interface to communicate with the wifi module itself (not with connected clients). For now the wifi module answers all messages on that channel with a 4 bytes indicating its ipv4 address (or
0.0.0.0
if not connected).This information still needs to be made available to the UI