Hi,
I'm trying to implement Data Exchange Between Python on Linux and an Arduino Sketch (using tutorial) but getting Python exception "msgpackrpc.error.RPCError: b"'F1' method not found"
F1 is the name of the function I'm trying to run.
Of course, m4-proxy is running.
Hi @jordy_m,
If you don't change the configuration of the m4-proxy agent, the correct TCP port to use is 5001.
So, the code line for creating the correct rpc_address is
rpc_address = RpcAddress('m4-proxy', 5001)
Please, also check you have the following key in the service defined in your docker-compose.yml file:
extra_hosts:
- "m4-proxy:host-gateway"
or to add the --add-host "m4-proxy:host-gateway" parameter to your docker run command line.
The m4-proxy in those strings is actually the DNS name of the X8 as network host as seen from the container. This configuration is needed to reach the m4-proxy agent via TCP from the container because it runs as a plain Linux tool on the X8.