Callback functions when there is change in signals

Typically: "How do I... ", "How can I... " questions
Post Reply
arp
Posts: 28
Joined: 18 Dec 2014, 10:41

Callback functions when there is change in signals

Post by arp »

Hi,

Is it possible to have a callback function when the value of a signal changes with python remote API so that I don't have to keep polling the signal for new data?

Is it already possible or an extension of the remote API would be required for this?

-Cheers

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: Callback functions when there is change in signals

Post by coppelia »

Hello,

this is currently not possible. But you could add a callback call somewhere just after /* We received a non-empty message */ in the source code of file programming/remoteApi/extApi.c. But this has not been tested... since the callback call would be the messaging thread... but it is worth a try.

Cheers

arp
Posts: 28
Joined: 18 Dec 2014, 10:41

Re: Callback functions when there is change in signals

Post by arp »

Could this be feature request?

Cheers.

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: Callback functions when there is change in signals

Post by coppelia »

we'll keep it in mind!

Cheers

Post Reply