Updated WEBServerManager due to changes in the Dictionary utility class plus bug fixes
This commit is contained in:
parent
b95716c38b
commit
a33add50f1
@ -325,19 +325,17 @@ boolean WEBServerManager::sendPageToClientFromApiDictio(WiFiClient *wifiClient)
|
||||
{
|
||||
if(_apiDictionary.count() == 0)
|
||||
return false;
|
||||
Serial.println("___1");
|
||||
ApiRoutine *ref = _apiDictionary(_httpRequestData.httpResource).getValueRef();
|
||||
Serial.println("___2");
|
||||
ApiRoutine *ref = _apiDictionary(_httpRequestData.httpResource);
|
||||
|
||||
if(ref == NULL)
|
||||
return false;
|
||||
|
||||
if(ref->HRM == UNDEFINED)
|
||||
{
|
||||
Serial.println("___3");
|
||||
return (*ref->apiRoutine)(_httpRequestData, wifiClient, ref->pData);
|
||||
return (*(ref->apiRoutine))(_httpRequestData, wifiClient, ref->pData);
|
||||
}else if(ref->HRM == _httpRequestData.HRM)
|
||||
{
|
||||
return (*ref->apiRoutine)(_httpRequestData, wifiClient, ref->pData);
|
||||
return (*(ref->apiRoutine))(_httpRequestData, wifiClient, ref->pData);
|
||||
}
|
||||
else
|
||||
return false;
|
||||
@ -445,4 +443,3 @@ void WEBServerManager::clearHttpRequestData()
|
||||
_httpRequestData.httpResource = NULL;_httpRequestData.httpBody = NULL;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user