mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-11 07:45:47 +00:00
hue - p2, unfinished
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user