title: Unable to connect NodeMCU with Firebase as console shows setting /number failed: each time
body: <p>Unable to connect NodeMCU with Firebase as console shows setting /number failed: each time
      No updation on firebase as well.</p>
  
  <p>or should I change the cloud server?</p>
  
  <pre><code>    #include &lt;ESP8266WiFi.h&gt;
      #include &lt;FirebaseArduino.h&gt;
  
      // Set these to run example.
      #define FIREBASE_HOST "example.firebaseio.com"
      #define FIREBASE_AUTH "token_or_secret"
      #define WIFI_SSID "SSID"
      #define WIFI_PASSWORD "PASSWORD"
  
      void setup() {
        Serial.begin(9600);
  
        // connect to wifi.
        WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
        Serial.print("connecting");
        while (WiFi.status() != WL_CONNECTED) {
          Serial.print(".");
          delay(500);
        }
        Serial.println();
        Serial.print("connected: ");
        Serial.println(WiFi.localIP());
  
        Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
      }
  
      int n = 0;
  
      void loop() {
        // set value
        Firebase.setFloat("number", 42.0);
        // handle error
        if (Firebase.failed()) {
            Serial.print("setting /number failed:");
            Serial.println(Firebase.error());  
            return;
       }
        delay(1000);
      }
  </code></pre>