Wire.endTransmission returns 7

I am getting a Wire.endTransmission returning value 7 (P2 Device OS 6.3.0) yet documentation only has the following error enumerators.

Returns: byte, which indicates the status of the transmission:

  • 0: success
  • 1: busy timeout upon entering endTransmission()
  • 2: START bit generation timeout
  • 3: end of address transmission timeout
  • 4: data byte transfer timeout
  • 5: data byte transfer succeeded, busy timeout immediately after
  • 6: timeout waiting for peripheral to clear stop bit

Is there a new and undocumented return value?

Added information about return code 7 for I2C endTransmission.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.