Skip to content

Commit

Permalink
Matter support for async HTTP for bridged devices (#18656)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hadinger authored May 14, 2023
1 parent 9b8f3b6 commit 951b9b4
Show file tree
Hide file tree
Showing 14 changed files with 4,402 additions and 1,069 deletions.
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

0 comments on commit 951b9b4

Please sign in to comment.