树莓派上使用socket套接口使用TCP协议传输数据
#import necessary packageimport socketimport time#import sysimport RPi.GPIO as GPIOHOST_IP = "192.168.1.170" #define host ip: Rpi's IPHOST_PORT = 8888print("Starting socket: TCP...")sock...