MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / get_service_with_id

Method get_service_with_id

erpc_python/erpc/server.py:56–61  ·  view source on GitHub ↗
(self, theId)

Source from the content-addressed store, hash-verified

54 return self._services
55
56 def get_service_with_id(self, theId):
57 matches = [x for x in self._services if x.service_id == theId]
58 if len(matches):
59 return matches[0]
60 else:
61 return None
62
63 def add_service(self, service):
64 assert self.get_service_with_id(service.service_id) is None

Callers 2

add_serviceMethod · 0.95
_process_requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected