Gemalto is now part of the Thales Group, find out more.

You are here

GPIO access help | Thales IoT Developer Community

March 24, 2016 - 1:02pm, 1799 views

I have been trying to access my GPIO pin (GPIO7,GPI10)on the EHSx6 Terminal.

Here is a sample of the code:


      inPins = new Vector();
      inPins.addElement("GPIO7");
      inPins.addElement("GPIO10");
        try {
            inPort = new InPort (inPins);
        } catch (IOException ex) {
            ex.printStackTrace();
        }

This code rases an exception: 'java.io.IOException: resource used by other component'

If I take out thr line  'inPins.addElement("GPIO10");' then I dont get the exception.

any ideas?

Thanks,

Kabir