def unlock_request(): channel = grpc.insecure_channel('172.20.10.6:50051') stub = lock_pb2_grpc.GLOCKStub(channel) response = stub.Unlock(lock_pb2.GlockRequest()) # print('Client received: {}'.format(response.message)) return "OK"
def run(): channel = grpc.insecure_channel('192.168.1.56:50051') stub = lock_pb2_grpc.GLOCKStub(channel) response = stub.Unlock(lock_pb2.GlockRequest()) print('Client received: {}'.format(response.message))