Better error if RCServo or DCMotor API Phidget opened elsewhere
Posted: Mon Jun 28, 2021 8:44 pm
If one does the following in Python with Phidget22==1.7.20210504:
1. Instantiate an RCServo or DCMotor API and connect to it via openWaitForAttachment at a particular address (serial number + port + channel combo)
2. Command the RCServo or DCMotor API to move around
3. Instantiate an RCServo or DCMotor API later on, and attempt to connect to it at the same address: the attachment fails with no special details or error code
Can you add a new error code/description for a duplicate connection attempt?
1. Instantiate an RCServo or DCMotor API and connect to it via openWaitForAttachment at a particular address (serial number + port + channel combo)
2. Command the RCServo or DCMotor API to move around
3. Instantiate an RCServo or DCMotor API later on, and attempt to connect to it at the same address: the attachment fails with no special details or error code
Can you add a new error code/description for a duplicate connection attempt?