@Override
	public void enumerate(String uid, String connectedUid, char position,
			short[] hardwareVersion, short[] firmwareVersion,
			int deviceIdentifier, short enumerationType) {

		// configure bricks on first connect (ENUMERATION_TYPE_CONNECTED) 
		// or configure bricks if enumerate was raised externally (ENUMERATION_TYPE_AVAILABLE)
		if (enumerationType == IPConnection.ENUMERATION_TYPE_CONNECTED
				|| enumerationType == IPConnection.ENUMERATION_TYPE_AVAILABLE) {
			
			// configure master brick
			if (deviceIdentifier == BrickMaster.DEVICE_IDENTIFIER) {
				master = new BrickMaster(connectedUid, ipcon);
				try {
					master.setWifiPowerMode(BrickMaster.WIFI_POWER_MODE_LOW_POWER);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
			
			// configure servo brick
			if(deviceIdentifier == BrickServo.DEVICE_IDENTIFIER){
				servo = new BrickServo(connectedUid, ipcon);
				try {
					// configure the drive servos (ESC) 
					servo.setAcceleration(Constants.servo0And1, 50000);
					// configure the camera servos
					servo.setVelocity(Constants.servo2And3, 20000);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
			
		}
	}