Subscribe to a channel

Is there a way to subscribe to a channel index? When I send a message, I can specify the channelIndex. I’m looking for a way to do the same on the receiving end. Thanks.

The pythion API is a bit lacking in documentation

As far as I can see can’t specifically substribe to a channel, but when you subscribe, each packet you receive does include the channel index (as configured on the connected node!)

Not sure if useful, but I found this a nice ‘reference’ implementation of subscribing.

I found the easiest way to see all the information you get with each packet is just to use print(packet) in the on_recieve.

Thanks for the reference! Very useful. At first I could not see the channel field unless the channel was 1 or greater. I guess the proto to Dict conversion is not including default values. Think that’s intentional?