I have some strange behavior on my OpenMV board when trying to play with remote controlling and callbacks by being inspired by provided examples. I might not have well understood how it works so I tried to oversimplify my script in order to check the basis.
Here is the code on the PC side:
import rpc interface = rpc.rpc_usb_vcp_master('COM5') result = interface.call("two") print(result)
And on the board side I have this one:
import network, omv, rpc omv.disable_fb(True) interface = rpc.rpc_usb_vcp_slave() def two(): return "2".encode() interface.register_callback(two) interface.loop()
I would have expected to be able to decode result pretty easily, but instead interface.call() returns None. Did I miss something obvious there?
Fw version: 3.6.8
Thanks for your help!