def METHOD_NAME(pos, value):
    global _digitalPinValues
    _digitalPinValues[pos-1] = int(value)
    DIGITALPIN_URL = "http://" + ROBOTINOIP + "/data/digitaloutputarray"
    r = requests.post(url = DIGITALPIN_URL, params = PARAMS, json = _digitalPinValues )