How to read ADC inputs?

I was using a BBB (rev C) and able to read analog inputs on it :

  • enable ADC :
    /sys/bus/iio/devices$ ls
    iio_sysfs_trigger
    /sys/bus/iio/devices$ sudo sh -c "echo BB-ADC > $ SLOTS"

  • read value :

/sys/bus/iio/devices$ ls
iio:device0 iio_sysfs_trigger

$ cat /sys/bus/iio/devices/iio:device0/in_voltage0_raw
3831

but on the BBB wireless i don’t know how!?