Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matter support for async HTTP for bridged devices #18656

Merged
merged 1 commit into from
May 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/libesp32/berry_mapping/src/be_class_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ int be_call_c_func(bvm *vm, const void * func, const char * return_type, const c
} else { // class name
be_find_global_or_module_member(vm, return_type);
be_pushcomptr(vm, (void*) ret); // stack = class, ptr
be_call(vm, 1); // instanciate with 2 arguments, stack = instance, ptr, -1
be_call(vm, 1); // instanciate with 1 argument (ptr)
be_pop(vm, 1); // stack = instance
be_return(vm);
}
Expand Down
6 changes: 6 additions & 0 deletions lib/libesp32/berry_matter/src/be_matter_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ extern const bclass be_class_Matter_TLV; // need to declare it upfront because
#include "solidify/solidified_Matter_TLV.h"
#include "solidify/solidified_Matter_IM_Data.h"
#include "solidify/solidified_Matter_UDPServer.h"
#include "solidify/solidified_Matter_TCP_async.h"
#include "solidify/solidified_Matter_HTTP_async.h"
#include "solidify/solidified_Matter_HTTP_remote.h"
#include "solidify/solidified_Matter_Expirable.h"
#include "solidify/solidified_Matter_Fabric.h"
#include "solidify/solidified_Matter_Session.h"
Expand Down Expand Up @@ -286,6 +289,9 @@ module matter (scope: global, strings: weak) {
// UDP Server
UDPPacket_sent, class(be_class_Matter_UDPPacket_sent)
UDPServer, class(be_class_Matter_UDPServer)
TCP_async, class(be_class_Matter_TCP_async)
HTTP_async, class(be_class_Matter_HTTP_async)
HTTP_remote, class(be_class_Matter_HTTP_remote)

// Expirable
Expirable, class(be_class_Matter_Expirable)
Expand Down
Loading