adafruit / Wippersnapper_Protobuf

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

Add I2C Device Init. Wrapper Message #54

Closed brentru closed 3 years ago

brentru commented 3 years ago

Adds a wrapper allowing for multiple types of initialization requests.

Broker: fills I2CDEVICENAMEInitRequest, encodes into an I2CDeviceInitRequest message Device: decodes I2CRequest, gets I2CDeviceInitRequest, determines tag (type) of initialization request.

Why? Otherwise, the device would need to check each i2c device request type individually (slow) or by the address (not a great idea - address could have been user-defined)

brentru commented 3 years ago

Also adds a required field for the device's address found during the scan