ds18b20_set_resolution() function
Set DS18B20's temperature conversion resolution
Arguments
ds18b20
DS18B20 device handle returned by `ds18b20_new_device`
resolution
resolution of DS18B20's temperature conversion
Return value
- ESP_OK: Set resolution successfully - ESP_ERR_INVALID_ARG: Set resolution failed due to invalid argument - ESP_FAIL: Set resolution failed due to other reasons