Example to use SET_MESSAGE_INTERVAL and read from Ardupilot

Hi ardupilot.org,

Would anyone be so kind as to give me a Python example for how one would use MAV_CMD_SET_MESSAGE_INTERVAL to establish an attribute listener and how one would read data from the listener? (e.g., battery, mission plan, airspeed, etc.)

I am replacing the dronekit api on my companion computer with PyMAVLink api for speed purposes. However, I am unsure how to set up incoming data streams. Does anyone have a plain vanilla example of how to do this in Python?

Thanks in advance!

I do not think that command is supported from ardupilot. Are you able to stream data or not yet?
I spent many hours trying but no progress