Author Topic: StepperBrick - blocking command  (Read 651 times)


  • Newbie
  • *
  • Posts: 10
    • View Profile
StepperBrick - blocking command
« on: December 30, 2018, 19:42:22 »

Is there an effective way to issue a blocking a Step command against the StepperBrick without using callback functions?

I notice in my Delphi application that the call doesnt block!



  • Tinkerforge Staff
  • Administrator
  • Hero Member
  • *****
  • Posts: 3.142
    • View Profile
Re: StepperBrick - blocking command
« Reply #1 on: January 02, 2019, 10:42:56 »
Generally, the calls to the API have a timeout of 2.5 seconds. So calls like setSteps will never block, since they may take a long time.

But you can make your own blockingSetSteps function that sets a bool value to true, calls setSteps, sets in the callback the bool value back to false and the blockingSetSteps function only returns when the bool value was set back to false.
Wir sind die Borg, Widerstand ist Spannung durch Stromstärke!