Skip to content

Wire.lastError Not defined in the Class #454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
FJRusso53 opened this issue Feb 2, 2022 · 1 comment
Closed

Wire.lastError Not defined in the Class #454

FJRusso53 opened this issue Feb 2, 2022 · 1 comment
Labels

Comments

@FJRusso53
Copy link

@greyltc
I am using IDE V 1.8.19. But had the same problem in V 2.0
On line 378 is the following Macro:
X("Wire.lastError", WIRE_LAST_ERROR, PUSH Wire.lastError())
On compiling: ESP32forth705:378:50: error: 'class TwoWire' has no member named 'lastError'
X("Wire.lastError", WIRE_LAST_ERROR, PUSH Wire.lastError()) \

I commented out the line and it successfully compiled But on loading to my board, ESP32 Dev Mod, it repeatedly reboots after trying to call the function.
I also commented out line 1130 but that created other errors

ESP32forth705.txt
.

@per1234
Copy link
Contributor

per1234 commented Feb 2, 2022

Hi @FJRusso53. Thanks for taking the time to submit an issue.

Wire is a "platform bundled library". This means that each boards platform provides its own variant of the library. The Arduino build system picks the appropriate library automagically based on which board you are compiling for, and the APIs are fairly standardized, so the user is often not aware that a different library is used from one board to the next.

This repository contains the Wire library for the "Arduino AVR Boards" platform (e.g., Uno, Leonardo, Mega), and so we only track issues specific to this variant of the library here. The Wire library used when compiling for your "ESP32 Dev Mod" board is the one here:
https://github.com/espressif/arduino-esp32/blob/master/libraries/Wire

I recommend you to post about this error over on the Arduino Forum. I'm sure we'll be able to help you to get your sketch compiling over there:

https://forum.arduino.cc/

@per1234 per1234 closed this as completed Feb 2, 2022
@per1234 per1234 added the invalid label Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants