function dynamic get read devices