nervousnet / nervousnet-HUB-iOS

Nervousnet HUB client for iOS
GNU General Public License v3.0
2 stars 0 forks source link

Separate concept of hardware and software sensors #15

Open a-enz opened 7 years ago

a-enz commented 7 years ago

The concept of configurable easily creatable "software sensors" through config files is not yet really implemented in iOS. Maybe we could try to improve on the android version a bit. Because the android implementation conflates two concepts (especailly in the AndroidSensors class): Hardware Sensors:

Software Sensors:

Every HW sensor changed/added will very likely need software changes anyway, so we could argue that the config file is redundant and we could just configure HW sensors in the code.

On the other hand, we should carefully construct a SW sensor abstraction in code, such that creating/changing a new SW sensors only means writing a sensor config and does not need code changes.

I propose: