needed for peripheral.getType