def write(self, reg_addr, data, len_data=0):
    "\n        :param reg_addr: (str) register address to write to in hex\n        :param data: (str or bytes) hex-encoded bytes, ie: '014ce8'\n        :param len_data: (optional int) dummy variable to support code portability\n        :return: None\n        "
    hex_reg_addr = enforce_hex(reg_addr)
    if (type(data) == bytes):
        data = getencoder('hex')(data)[0].decode('ascii')
    try:
        req_url = ('%swrite/%s/%s/%s' % (self.url, self.dev_addr, hex_reg_addr, data))
        requests.get(url=req_url)
    except ValueError:
        print(('i2c device 0x%s failed write' % self.dev_addr))
:param reg_addr: (str) register address to write to in hex
:param data: (str or bytes) hex-encoded bytes, ie: '014ce8'
:param len_data: (optional int) dummy variable to support code portability
:return: None
def write(self, reg_addr, data, len_data=0):
    "\n        :param reg_addr: (str) register address to write to in hex\n        :param data: (str or bytes) hex-encoded bytes, ie: '014ce8'\n        :param len_data: (optional int) dummy variable to support code portability\n        :return: None\n        "
    hex_reg_addr = enforce_hex(reg_addr)
    if (type(data) == bytes):
        data = getencoder('hex')(data)[0].decode('ascii')
    try:
        req_url = ('%swrite/%s/%s/%s' % (self.url, self.dev_addr, hex_reg_addr, data))
        requests.get(url=req_url)
    except ValueError:
        print(('i2c device 0x%s failed write' % self.dev_addr))