Closed brentru closed 3 years ago
Added I2C bus frequency setter Added fields for SDA/SCL pins (will be from hardware definition) Added I2C Bus Id (ESP32 has multiple, we may want to modify a hardware definition to include a string "i2c_bus_id")
Ready for review
Failure on #cef1d28 due to type change - this API is not currently in use , shouldn't effect merge
Devices listen for i2c commands across a
signals/i2c
MQTT sub-topic. The callback for this topic will call the existing signal message decoding overhead as I2C commands are currently within theCreateSignalRequest
message.This pull request aims to pull the I2C-specific commands out of
CreateSignalRequest
for use with a decoder specific to handlingI2CRequest
s and an encoder function for handlingI2CResponse
s.I did not bring in the unified sensor API/anything else yet, just focusing on scanning and initializing for now.
Noting that we may need to drop the
oneof
if we can not decode therepeated i2c_address
field within the i2cscanrequest