You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check if machine is live (last access time less than 10 sec ago)
1362
+
if (time.time() - my_robot_part.last_access.timestamp()) <=10000:
1363
+
print("Machine is live.")
1361
1364
```
1362
1365
1363
1366
For more information, see the [Python SDK Docs](https://python.viam.dev/autoapi/viam/app/app_client/index.html#viam.app.app_client.AppClient.get_robot_part).
# Get the value of the digital signal "my_example_analog_reader" has most
@@ -1057,7 +1057,7 @@ For more information, see the [Python SDK Docs](https://python.viam.dev/autoapi/
1057
1057
1058
1058
-`ctx`[(Context)](https://pkg.go.dev/context#Context): A Context carries a deadline, a cancellation signal, and other values across API boundaries.
1059
1059
-`mode`[(pb.PowerMode)](https://pkg.go.dev/go.viam.com/api/component/board/v1#PowerMode): Options to specify power usage of the board: `boardpb.PowerMode_POWER_MODE_UNSPECIFIED`, `boardpb.PowerMode_POWER_MODE_NORMAL`, and `boardpb.PowerMode_POWER_MODE_OFFLINE_DEEP`.
1060
-
-`duration`[(\*time.Duration)](https://pkg.go.dev/time#Duration): If provided, the board will exit the given power mode after the specified duration.
1060
+
-`duration`[(*time.Duration)](https://pkg.go.dev/time#Duration): If provided, the board will exit the given power mode after the specified duration.
1061
1061
1062
1062
**Returns:**
1063
1063
@@ -1403,8 +1403,8 @@ For more information, see the [Go SDK Docs](https://pkg.go.dev/go.viam.com/rdk/r
0 commit comments