I want to control the mBed controller with python 2.7 I tried this code as start
from mbedrpc import *
serdev = '/dev/tty.usbmodemfa122'
mbed = SerialRPC("/dev/tty.usbmodemfa122", 9600)
x = DigitalOut(mbed, "LED1")
x.write(1)
It always shows me this error
File "/Users/Desktop/testRPC/mbedrpc.py", line 78, in __init__
self.ser.setBaudrate(baud)
AttributeError: 'Serial' object has no attribute 'setBaudrate'
Could someone help me please ?