A simple way needed to fetch and use ds18b20 adresses

Hi, I was trying to use ds18b20 with Nucleo f446re and for this, I am using the ds18b20_hello world program provided in component section of mbed os. It works fine. However, there is no public method to get the address and hardcode it so if some sensor fail at least I could know which one is failed. Please revised this library so it becomes more useful.