Breaking PR for both client and device
Idea: Remove SENSORNAMEUpdateRequest sub-messages to be more generic and avoid adding to the size of this file every time we'd like to add a sensor. Users adding a sensor to the future component definition JSON repo should not need to also update i2c.proto.
Changes:
New Field, i2c_device_name should match the sensor's name from the JSON list.
New message I2CDeviceSensorProperties holds the i2c device's sensor type and period. The period should be set to 0.0 if the sensor is not enabled in the modal.
I2C devices may have multiple sensors, this field may be repeated.
Removed sensor-specific UpdateRequest messages in favor of new scheme.
Breaking PR for both client and device Idea: Remove
SENSORNAMEUpdateRequest
sub-messages to be more generic and avoid adding to the size of this file every time we'd like to add a sensor. Users adding a sensor to the future component definition JSON repo should not need to also update i2c.proto.Changes:
i2c_device_name
should match the sensor's name from the JSON list.I2CDeviceSensorProperties
holds the i2c device's sensor type and period. The period should be set to0.0
if the sensor is not enabled in the modal.UpdateRequest
messages in favor of new scheme.