Instructions
-
Connect to classroom intranet
SSID: IDEAlab
password: posted in class -
open up spyder and create a new script
make sure that you use your team’s IP address:
Team 1 IP 1 201 2 202 3 203 4 204 5 205 6 206
#!/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()