Oh my bad. I put cyphal.sub.PORT_NAME.type instead of uavcan.sub.PORT_NAME.type now everything works! Thank you!