Skip to content

Fix file upload when using mDNS#57

Open
Jfhow wants to merge 1 commit into
jeyeager65:devfrom
Jfhow:feature/fix-mDNS-in-file-upload
Open

Fix file upload when using mDNS#57
Jfhow wants to merge 1 commit into
jeyeager65:devfrom
Jfhow:feature/fix-mDNS-in-file-upload

Conversation

@Jfhow

@Jfhow Jfhow commented Jun 25, 2026

Copy link
Copy Markdown

When using mDNS to connect FluidTouch to FluidNC, file uploads would fail. The call to FluidNCClient::getMachineIP from the upload procedure was not using mDNS to resolve the IP address and was just using the url from the connection definition.
The connection procedure, FluidNCClient::connect, used during initial connection of FluidTouch to FluidNC, does have an mDNS capability.

I made changes to save the IP address resolved during initial connect and then reuse this IP during file uploads.

I added a field to Machine Config to store the IP address that is resolved during initial connection. I added a line to FluidNCClient::connect. to save the resolved IP address to this field.

I revised FluidNCClient::getMachineIP to use the IP address saved in Machine Config instead of the url from the connection box.

I tested this on a Basic display and a version 1.4 Advanced display.
I tested by using a hard coded IP address in the connection configuration, and by using fluidnc.local in the configuration.

@jeyeager65
jeyeager65 changed the base branch from main to dev June 26, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant