def scanI2c(ip):
    '\n    scans devices on i2c bus\n        :return: list of hex string addresses present on i2c bus\n    '
    try:
        req_url = (('http://' + ip) + '/i2c/scan')
        resp = requests.get(url=req_url)
        return resp.content.decode('utf-8')
    except ValueError:
        print('i2c failed scan')
scans devices on i2c bus
    :return: list of hex string addresses present on i2c bus
def scanI2c(ip):
    '\n    scans devices on i2c bus\n        :return: list of hex string addresses present on i2c bus\n    '
    try:
        req_url = (('http://' + ip) + '/i2c/scan')
        resp = requests.get(url=req_url)
        return resp.content.decode('utf-8')
    except ValueError:
        print('i2c failed scan')