getResourceName static method

ResourceName getResourceName(
  1. String name
)

Get the ResourceName for this Sensor with the given name.

final mySensorResourceName = mySensor.getResourceName("my_sensor");

For more information, see Sensor component.

Implementation

static ResourceName getResourceName(String name) {
  return Sensor.subtype.getResourceName(name);
}