hue - p2, unfinished

This commit is contained in:
Tester23
2023-06-26 13:21:31 +02:00
parent b9f4a9c2ad
commit 52524bc6c5
2 changed files with 84 additions and 0 deletions

View File

@ -573,6 +573,7 @@ int hprintf255(http_request_t* request, const char* fmt, ...) {
return postany(request, tmp, strlen(tmp));
}
int HUE_APICall(http_request_t* request);
int HTTP_ProcessPacket(http_request_t* request) {
int i;
@ -698,6 +699,12 @@ int HTTP_ProcessPacket(http_request_t* request) {
return http_fn_empty_url(request);
#endif
#if ENABLE_DRIVER_HUE
if (HUE_APICall(request)) {
return 0;
}
#endif
// look for a callback with this URL and method, or HTTP_ANY
for (i = 0; i < numCallbacks; i++) {
char* url = callbacks[i]->url;