DS18B20 Library Problem with Type

I keep getting the error, "DS18B20 does not name a type" when trying to use this library.

My project.properties file has this line,

dependencies.DS18B20=0.1.6

The top of my TempSensors.cpp file has these lines,

#include "DS18B20.h"
#include "TempSensor.h"

DS18B20 ds(D3); // this line gives the error

What gives?

How are you building?
Are you building from the correct directory?
What version are you targeting?

For me this builds fine with CLI 1.24.1 when located in the directory where the project.properties file lives.

particle compile p .
1 Like

Ok, I found the problem. I had an enum where DS18B20 was one of the enum members. Changing that to ds18b20 fixed the problem.