timeout exception when calling io callback function

In my code I am using a callback function with add_io_sample_received_callback to receive orders from a server to turn on/off xbee smart plug, but I get a timeout exception every time it is trying to run the on/off line.

I use this code to turn on the plug:
self.plug.set_parameter(“D4”,bytearray([4]))

1 Like

did you check, is it getting sensed manually?