0
What is my mistake? It says "extended character is not valid in an identifier"
2 Answers
0
https://code.sololearn.com/cEz317vFUeA7/?ref=app
0
#include <ESP8266WiFi.h>
#include <SoftwareSerial.h>
#include <FirebaseArduino.h>
#include <ArduinoJson.h>
#include <ESP8266HTTPClient.h>
// Set these to run example.
#define FIREBASE_HOST âgasd-118cb-default-rtdb.firebaseio.comâ
#define FIREBASE_AUTH â0000000000000000000000000000â
#define WIFI_SSID âDialog 4G 83Dâ //provide ssid (wifi name)
#define WIFI_PASSWORD â244466666â //wifi password
// Calibrating the load cell
#include <Arduino.h>
#include "HX711.h"
// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 12;
const int LOADCELL_SCK_PIN = 13;
HX711 scale;
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);
if(Firebase.failed())
{
Serial.print(Firebase.error());
}
else{
Serial.print(âFirebase Connectedâ);
Firebase.setString(âSenura/Valueâ,â0");
}
//loadcell
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
}
void loop() {
for(int i = 0; i <= 100; i++)
{
Firebase.setInt(â/Senura/Valueâ,i);
delay(1000);
}
if (scale.is_ready()) {
Serial.print("read average: \t\t");
Serial.println(scale.read_average(20));
}
else {
Serial.println("HX711 not found.");
}
delay(1000);
}
this is my code and i get the error that says"extended character â is not valid in an identifier"
in all most every line? does anyone ones what cause this or how to fix this?