Skip to content

Commit c338a60

Browse files
authored
DOCS-3940: Update app_client.py (#915)
1 parent ca89d8e commit c338a60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/viam/app/app_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,8 @@ async def get_robot_part(self, robot_part_id: str, dest: Optional[str] = None, i
12841284
my_robot_part = await cloud.get_robot_part(
12851285
robot_part_id="abc12345-1a23-1234-ab12-a22a22a2aa22"
12861286
)
1287+
# Get the part's address
1288+
address = my_robot_part.fqdn
12871289
# Check if machine is live (last access time less than 10 sec ago)
12881290
if (time.time() - my_robot_part.last_access.timestamp()) <= 10000:
12891291
print("Machine is live.")

0 commit comments

Comments
 (0)