Modified the samples to use the devices list instead of the getMeasures.