RoboDK Forum
ConnectedState not Present in C#可打印版本

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: ConnectedState not Present in C# (/Thread-ConnectedState-not-Present-in-C)



ConnectedState not Present in C#-Alec.Zitzelberger-07-13-2021

I am attempting to do some application programing and I noticed that in python, you can do the following function call to get determine the connection state of the robot.

# Check if we are still connected and the robot is ready (not doing anything else), otherwise, stop

status, msg_status = robot.ConnectedState()

However, I went digging through the C# API for RoboDK on Github and on my local copy of the API and I could not find a function that does this. Am I overlooking something?


RE: ConnectedState not Present in C#-Vineet-07-14-2021

Hello,

ConnectedState() is also available in C#. Here is the GitHub link:https://github.com/RoboDK/RoboDK-API/blob/79bba8b33beae1a2a1dd85fdfaa889e933ed24a2/C%23/API/IItem.cs#L650