Software question

Hi guys

I am planning a project that will use solar, temperature and humidity sensors.

While I await all the bits arriving, I am going through the examples given with the libraries, to understand how the sketchs actually work. Going through Adafruit's DHT_Unified_Sensor.ino, I came across several lines of code, eg dht.temperature().getSensor(&sensor);.

Am I correct in thinking that this is saying that getSensor(&sensor) is a function or array(?) being called from within temperature(), which is itself a function being called from dht.

If so, just out of curiosity's sake. is there any limit (apart from your brains capabilities sanity) on the depth of function calls one could make?

Thanks

Fof

IamFof: Am I correct in thinking that this is saying that getSensor(&sensor) is a function or array(?) being called from within temperature(), which is itself a function being called from dht.

No, this syntax is using standard C++ for objects. Read up about these, for example here

Thanks quilkin

As a reasonably new dabbler in C, this is way in front of where I am, but great. I learn something new.

Looks a great site. I will have to start from the beginning.

Fof