Skip to content
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

allow the hostname to be configured through setup.ini or gcode #1

Open
wants to merge 3 commits into
base: fysetc
Choose a base branch
from

Conversation

salfter
Copy link

@salfter salfter commented Mar 25, 2021

Instead of a fixed hostname, it'd be nice if it could be configured. This would be especially true in a situation where you have more than one SD-WiFi on your network.

This patch enables the hostname to be set, either in setup.ini or with a new M54 gcode.

)

OPTIONS / was returning a "DAV: 2" header.  This causes davfs2 to reject the
attempt:

/sbin/mount.davfs: mounting failed; the server does not support WebDAV

Setting ignore_dav_header 1 in /etc/davfs2/davfs2.conf allows the mount to
continue, but this shouldn't be necessary.  Advertising Class 1 capability
in addition to Class 2 fixes this problem, while not affecting compatibility
with other clients (was still able to mount the device from Windows 10, for
instance).
@salfter
Copy link
Author

salfter commented Mar 26, 2021

Withdrawing for more testing...might have a problem with the last commit.

@salfter salfter closed this Mar 26, 2021
@salfter salfter reopened this Mar 30, 2021
@salfter
Copy link
Author

salfter commented Mar 30, 2021

The patches are good...was having problems with insufficient power to the SD-WiFi when plugged in through a data-and-power USB cable or the SD-card slot in my printer's display. Insufficient power was causing writes to fail. When connected with a power-only USB cable, the device is able to draw sufficient power to operate reliably.

davfs2 (http://savannah.nongnu.org/projects/davfs2) still doesn't want to write files. webdavfs (https://github.com/miquels/webdavfs) says upfront when you mount the device that since it's missing PUT range support, it will only mount read-only. cadaver (http://webdav.org/cadaver/) works flawlessly, but it's more like the old command-line FTP client than a network filrsystem implementation.

@airfield20
Copy link

@salfter Im trying to build your fork, which versions of the dependencies do you use to build?

@GrzegorzDrozd
Copy link

Any progress with this merge?

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.

5 participants