Mar 25, 2014 at 1:01 AM
Edited Mar 25, 2014 at 1:02 AM
When calling the Disconnect() method of the Brick class, I receive the following error:
WinRT information: The operation identifier is not valid.
My code includes the following method:
Private Async Function ConnectToEV3() As Task
Me.EV3Brick = New Brick(New BluetoothCommunication())
And the lines of code leading up to the Disconnect method are:
Await Me.EV3Brick.DirectCommand.StepMotorAtPowerAsync(OutputPort.A, 25, 2500, True)
The motor turns when I call StepMotorAtPowerAsync, so I am assuming it gets connected properly. Why am I receiving this error? Is the DirectCommand messing something up? Is it trying to disconnect before it is done with the other stuff? Am I doing something
wrong when creating or connecting to my Brick? Thanks.