adafruit / Wippersnapper_Protobuf

Protocol buffer messages for Adafruit.io WipperSnapper Beta
MIT License
0 stars 2 forks source link

Add message for Adafruit STEMMA Soil Sensor #64

Closed brentru closed 3 years ago

brentru commented 3 years ago
brentru commented 3 years ago

I'm conflicted on modifying the universal SensorEvent API to support a raw, unitless, measurement from the ADC. Possibly packaging data for the moisture sensor as an analog PinEvent is a better idea?

brentru commented 3 years ago

from mtg - may be possible to remove SENSOR_TYPE_CAPTOUCH_RAW. Replace raw_captouch field with a raw_value field so its not limited to captouch-only, its just a raw adc val.

brentru commented 3 years ago

Changed SENSOR_TYPE_CAPTOUCH_RAW to SENSOR_TYPE_RAW Changed raw_captouch to raw_value

This will allow raw, unit-less, integer values to be sent by sensors that aren't compatible with the universal Sensor API.