0
What is my mistake? It says "extended character is not valid in an identifier"
2 odpowiedzi
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?