Esempio n. 1
0
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"
Esempio n. 2
0
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))