8 years, 9 months ago.

EnvironmentalService issues

I encounter a few issue while using the EnvironmentalService class.

The documentation has some parameters that let the developer enable or disable certain characteristic of this service. This make sense for the use case, and actually is exactly what I want because our product does not have a pressure sensor for the Pressure Characteristic. However, the actual implementation does not allow any such thing. The constructor take in the BLE object as its only parameter. All characteristics are enabled. I cannot do anything about this. There are no constructors that allow anything else.

Another thing is in EnvironemtalService.h, HumidityType_t and TemperatureType_t are listed as public types. However, the compiler complains that there are no such types when I use them in my main.c

What could I be doing wrong that give me these issues?

Also, according to the official specification, those characteristics optionally have Notify permission. Is there a reason that option is not implemented?

Question relating to:

Bluetooth Low Energy (a.k.a Bluetooth LE, BTLE, Bluetooth Smart)
Be the first to answer this question.