Cutting over Wifi

Instructions

  1. Connect to classroom intranet

    SSID: IDEAlab
    password: posted in class

  2. open up spyder and create a new script

    make sure that you use your team’s IP address:

    Team 1IP
    1201
    2202
    3203
    4204
    5205
    6206
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 19 11:31:19 2021

@author: danaukes
"""

import socket

host = '192.168.0.209' # substitute your vinyl cutter's ip address
port = 8080                   # The same port as used by the server
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))
s.sendall(b'IN;P0;U0,0;D1000,0;D1000,1000;D0,1000;D0,0;U0,0;@')
s.close()