def getRequestPayload(self, request):
        requestLength = request.getContentLength()
        if requestLength == 0:
            return None

        inputStream = request.getInputStream()
        if inputStream is not None:
            return inputStream.read()
        else:
            return None
scan for available ports. return a list of device names.
dataset/ETHPy150Open rwl/muntjac/muntjac/terminal/gwt/server/abstract_communication_manager.py/AbstractCommunicationManager.getRequestPayload--crossover with--dataset/ETHPy150Open sahana/eden/modules/pygsm/scanmac.py/scan