getWireTimeoutFlag() checks whether a timeout has occurred since the last time the flag was cleared.
This flag is set whenever a timeout occurs, and is cleared when Wire.clearWireTimeoutFlag() is called or when the timeout is changed using Wire.setWireTimeout().
This function is part of the Wire library. See the Wire main page for more information.
Wire.getWireTimeoutFlag()
None.
true if a timeout has occurred since the flag was last cleared, false otherwise. Data type: bool.
This function was not available in the original version of the Wire library and might still not be available on all platforms. Code that needs to be portable across platforms and versions can use the WIRE_HAS_TIMEOUT macro, which is only defined when Wire.setWireTimeout(), Wire.getWireTimeoutFlag(), and Wire.clearWireTimeoutFlag() are all available.