ouster-lidar / ouster_example

Ouster, Inc. sample code
Other
451 stars 434 forks source link

Is it possible to get the Netmask of a device? #528

Closed Nico-Trimble closed 1 year ago

Nico-Trimble commented 1 year ago

Describe your question I've been able to set the static IP and net mask of my ouster lidars using the instructions provided here, but I haven't been able to retrieve the configured net mask. Is this possible in the sdk?

kairenw commented 1 year ago

You should be able to retrieve it by using the sensor's HTTP API directly (instead of through the SDK).

for ex, for my sensor at 10.0.0.168, trying:

$ curl -X GET 10.0.0.168/api/v1/system/network/ipv4/override
"10.0.0.168/24"

I get back the static IP and the subnet mask. Hope that helps!

Nico-Trimble commented 1 year ago

That's exactly what I'm looking for, and it worked for me. Thanks!