Is there a way to read which channel of the analog MUX component is selected? I don't see anything in the API.
Since it is you that sets the channel selected, you will be the one to remember that. There is no API provided for that. Use a global variable that holds the channel number when setting the AMux.
Retrieving data ...