Skip to content
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

Error with instantiation #25

Open
hpnotiqballin opened this issue Feb 19, 2021 · 0 comments
Open

Error with instantiation #25

hpnotiqballin opened this issue Feb 19, 2021 · 0 comments

Comments

@hpnotiqballin
Copy link

I have encountered a rather weird error. When I compile your example GET code for an ESP-32 (Firebeetle), it compiles just fine. However, when I compile it in my code, I get a "'client' doesn't name a type" error on the line where I try to first use the client object (in begin). I am using the Arduino IDE to compile, and I reused your code for the object declaration/instantiation and the begin.

What I used:
*before setup()
RestClient client = RestClient("enteredlocalAPIiphere", 80);

*within setup()
client.begin("myssid", "mypasswd");

The error is throwing on the client.begin line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant