mobizt/Firebase-Arduino-WiFiNINA

Connection refused IoT 33 Wifi

antonigimenezrodriguez opened this issue ยท 5 comments

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

  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.

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

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.

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

Thx a lot!!!!

I was desperate

imagen

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..