def centralManager_didConnectPeripheral_(self, manager, peripheral):
logger.debug('<STR_LIT>')<EOL>peripheral.setDelegate_(self)<EOL>peripheral.discoverServices_(None)<EOL>device = device_list().get(peripheral)<EOL>if device is not None:<EOL><INDENT>device._set_connected()<EOL><DEDENT>
Called when a device is connected.