You may be able to do it by sending serial data throught the Edison's Serial0 port (the one used for the Arduino IDE) which is directly connected to the micro-USB port next to the micro-switch. You can do this by making system calls that send data to ttyGS0. On your computer's side you will have to read this data from the serial port in order to use it as you wish. Here's a quick example on how to send data to Serial0:
from subprocess import call import time while True: call('echo Your_Message > /dev/ttyGS0', shell=True) time.sleep(0.2) call('echo Another_Message > /dev/ttyGS0', shell=True) time.sleep(0.2)
If you want to avoid cabling, and use the Wifi network, consider MQTT. Just host a mosquitto broker on your MAC, and run a subscriber.
You can publish data from the Edison. Here is an untested snippet... This is basically how it works...
import paho.mqtt.client as mqtt import time def on_connect(client, userdata, flags, rc): print("Connected with result code "+str(rc)) print("Connected to " + BROKER_ADDR) # BROKER is your MAC def main(): client.connect(BROKER_ADDR) client.loop_start() while True: client.publish("edison/test", "Hello Edison!!") time.sleep(.5)