Jump to content
Sign in to follow this  
shaffin

IPConnection Connect (C++ API)

Recommended Posts

Hello,

 

I am using the C++ API, and when issuing

 

ret = ipcon_connect(&ipcon, host, port);

 

the return (ret) is 0 and that is not correct when the Stepper Brick is unplugged?

 

Any reason why?

 

Thanks,

Shaffin.

 

 

Share this post


Link to post
Share on other sites

Hi,

 

icon_connect connects to the brickd via TCP/IP or directly to the stack if an externet or WIFI extension is present.

 

If you connect to a brickd, you'll always get an OK back even if no brick is connected via USB (except the network connection is down).

But if you trigger an enumerate, you will not see the stepper, if it is not connected via USB.

 

I'm not sure what you mean, can you explain it a bit more detailed?

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...