Code sync and fixed compile error for Mbed OS5

Dependencies:   DHT

no such method: docs