You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This looks like a failure to connect to the BT device.
The RFCOMM run loop exits when the device disconnects, so I'm guessing you will see that message several times in the Scratch Link console if you connect and disconnect successfully several times. If an attempt to connect to EV3 is not successful, Scratch Link responds with "Connection process could not start or channel was not found". The "Cannot call send in discovery state" happens when you try to send a command when there is no device connected.
Honestly EV3 Bluetooth is not the best experience all the time, and the device might refuse to connect, in which case Scratch Link should allow you to try to connect again.
Does Scratch Link tell you that connection was successful? And then is it unreachable after you see those errors?
After connecting and disconnecting successfully several times, we saw this error on the Scratch Link console:
RFCOMM run loop exited
,and this error on the Scratch console:
Uncaught (in promise) code: -32601 data: "Cannot call send in discovery state" message: "Method Not Found"
(many times)this causes Scratch Link to exit, which causes:
BTSession error: {"code":-32500,"data":"Connection process could not start or channel was not found","message":"Server Error"}
(once)The text was updated successfully, but these errors were encountered: