Beispiel #1
0
 /// <summary>
 /// Initializes a Positiontracker, this shouldn't be done directly and is part of the Connection it needs anyway
 /// </summary>
 /// <param name="con">The Octoprint connection it connects to.</param>
 public OctoprintPosTracker(OctoprintConnection con) : base(con)
 {
     BufferPos         = new float[] { 0, 0, 0, 0 };
     MaxFeedRateBuffer = new float[] { 200, 200, 12 };
     MovesBuffer       = new List <float[]>();
     //syncthread = new Thread(new ThreadStart(AutoSync));
     //syncthread.Start();
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            string ip;
            string APIkey;

            ip     = "http://192.168.1.38:5000";
            APIkey = "E3C06441F4834FD2B94E8C75FD3DF915";
            var octo = new OctoprintConnection(ip, APIkey);

            octo.WebsocketStart();
        }
 /// <summary>
 /// Initializes a Jobtracker, this shouldn't be done directly and is part of the Connection it needs anyway
 /// </summary>
 /// <param name="con">The Octoprint connection it connects to.</param>
 public OctoprintJobTracker(OctoprintConnection con) : base(con)
 {
     JobinfoHandlers = GetUploadedFileInfo;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a Filetracker, this shouldn't be done directly and is part of the Connection it needs anyway
 /// </summary>
 /// <param name="con">The Octoprint connection it connects to.</param>
 public OctoprintFileTracker(OctoprintConnection con) : base(con)
 {
 }