More example usage, commented out
This commit is contained in:
parent
d384481e46
commit
04b25d2da5
1 changed files with 7 additions and 0 deletions
|
@ -14,4 +14,11 @@ with grpc.insecure_channel('192.168.100.1:9200') as channel:
|
||||||
stub = spacex.api.device.device_pb2_grpc.DeviceStub(channel)
|
stub = spacex.api.device.device_pb2_grpc.DeviceStub(channel)
|
||||||
response = stub.Handle(spacex.api.device.device_pb2.Request(get_status={}))
|
response = stub.Handle(spacex.api.device.device_pb2.Request(get_status={}))
|
||||||
|
|
||||||
|
# Dump everything
|
||||||
print(response)
|
print(response)
|
||||||
|
|
||||||
|
## Just the software version
|
||||||
|
#print(response.dish_get_status.device_info.software_version)
|
||||||
|
|
||||||
|
## Check if connected
|
||||||
|
#print("Connected" if response.dish_get_status.state == spacex.api.device.dish_pb2.DishState.CONNECTED else "Not connected")
|
||||||
|
|
Loading…
Reference in a new issue