you missed some thing that leads to show
java.lang.IllegalStateException: Connection has not yet been established
you are so busy that you are not waiting for a connection :)
try {
ioio.waitForConnect(); //Note this line
//You Code Goes Here
} catch (ConnectionLostException e) {
} catch (IncompatibilityException e) {
}