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

Connection refused IoT 33 Wifi #18

Closed
antonigimenezrodriguez opened this issue May 14, 2021 · 5 comments
Closed

Connection refused IoT 33 Wifi #18

antonigimenezrodriguez opened this issue May 14, 2021 · 5 comments

Comments

@antonigimenezrodriguez
Copy link

Hi! I'm trying to connect to my Firebase Database with my Arduino nano IoT 33 Wifi and always gets "connection refused"

imagen

I try with desktop IDE and arduino IoT cloud and always gets "connection refused".

I use the example code and the rules are read/write: true.
I don't know why is wrong

@mobizt
Copy link
Owner

mobizt commented May 14, 2021

  1. You should try to update WiFiNINA firmware first by follow this.

  2. The FIREBASE_HOST may not valid.

This credential will be used as part of internal request URL end point which device can't find the server or URL or server reject the connection due to not found.

The FIREBASE_HOST should defined as .firebaseio.com or ..firebasedatabase.app

This URL should be copied from the Firebase RTDB console, see the URL at the top of database tree, copy it by excluding the https:// at the beginning and / (slash) at the end.

  1. Try to renew the database secret.

@antonigimenezrodriguez
Copy link
Author

Step 1: done (Version 1.3.0 of WiFi NINA)

imagen

Step 2: I copy the DB URL from that:

imagen

And secret from that:

imagen

Step 3: done

I generate the last secret today, with same result

imagen

@mobizt
Copy link
Owner

mobizt commented May 14, 2021

Don't forget to add your firebase domain and update certificate.

Try following

Reset your router or connect trough the mobile or PC mobile hotspot.

Change the USB cable with shorter cable or try to connect the large value capacitor (> 220 uF) between 3.3V and GND.

Go to Arduino IDE choose File -> Examples -> WiFiNINA -> WiFiSSLClient and test it.

If the example works, the library should work too.

@antonigimenezrodriguez
Copy link
Author

Yeah! I update the domain certificate and it works!!!

Thx a lot!!!!

I was desperate

imagen

@AdleeAfif
Copy link

Yeah! I update the domain certificate and it works!!!

Thx a lot!!!!

I was desperate

imagen

hello, may i know how did you update your certificate? i'm doing my project last night and it suddenly refused to send any data to firebase..

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

3 participants