Author Topic: IPConnection Connect (C++ API)  (Read 791 times)

shaffin

  • Newbie
  • *
  • Posts: 10
    • View Profile
IPConnection Connect (C++ API)
« on: January 02, 2015, 22:22:44 »
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.


remotecontrol

  • Hero Member
  • *****
  • Posts: 591
    • View Profile
Re: IPConnection Connect (C++ API)
« Reply #1 on: January 03, 2015, 08:39:46 »
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?