Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Automatic Uploading to SD Card

    Scheduled Pinned Locked Moved Solved
    General Discussion
    3
    3
    114
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JRCLundefined
      JRCL
      last edited by

      Hello, I'm working on a web application to do some batch slicing, then automatically send the files to the machine to start printing. I noticed M32 is used to select and initiate the file from the SD card at .../gcodes.

      I'm here to ask the best way to upload a .gcode file to the /gcode folder on the SD card using Java/HTML. Is there a way to use SSH/SFTP for File Transfer or HTTP POST? I'm only a novice when it comes to development so a little unsure how to approach this one.

      (Posted in wrong forum before)

      oliofundefined jay_s_ukundefined 2 Replies Last reply Reply Quote 0
      • oliofundefined
        oliof @JRCL
        last edited by

        @JRCL it's best to use the HTTP API for this to avoid enabling extra protocols. It's also the same mechanism used when you upload via DWC, so a well tested and understood part of the API.

        <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

        1 Reply Last reply Reply Quote 1
        • jay_s_ukundefined
          jay_s_uk @JRCL
          last edited by

          @JRCL https://github.com/Duet3D/RepRapFirmware/wiki/HTTP-requests

          Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

          1 Reply Last reply Reply Quote 1
          • JRCLundefined JRCL has marked this topic as solved
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA