Hi Burak,

On 8/21/19 9:52 AM, Burak Karaduman wrote:
> Dear All, i tried to get temperature and humid from DHT11.
> ...
> saul_dht = saul_reg_find_name("dht");

dht dht driver exposes two endpoints in the saul registry, both named
"dht". The first happens to be the temperature, the second is the humidity.

Try replacing above line with:

    saul_dht = saul_reg_find_type(SAUL_SENSE_HUM);

Kaspar

_______________________________________________
users mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users

Reply via email to