GoPxL SDK

- Home
- Files
- Namespace

ResourcePath SensorPath | ( | SerialNum | serialNum | ) |

Given a sensor's serial number, returns its resource path.

This function throws a GoPxLSdk::GoChannelError if the operation is not completed within the timeout period. Default timeout period is 15 seconds.

Version
  Introduced in 0.2.1.53.

Parameters

  serialNum | The serial number to look for.

Exceptions

  GoPxLSdk::GoRequestError | If the server responds with a failed status for the request.
  GoPxLSdk::GoChannelError | If the request times out.

Returns
  Resource path of the sensor. If sensor with the specified serial number is not found, returns an empty string.