Arduino Forum

Using Arduino => Interfacing w/ Software on the Computer => Topic started by: roccol00 on Jun 07, 2017, 07:16 pm

Title: Error in the library
Post by: roccol00 on Jun 07, 2017, 07:16 pm
Error in the library <BlynkSimpleShieldEsp8266_SoftSer.h> and in the library <ESP8266_SoftSer.h>
Title: Re: Error in the library
Post by: pert on Jun 07, 2017, 11:08 pm
Don't post screenshots of text! That is very unhelpful. When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar). It is almost never appropriate to post screenshots but in some cases it is helpful to post images. You should attach and embed the image following these instructions:
http://forum.arduino.cc/index.php?topic=364156 (http://forum.arduino.cc/index.php?topic=364156)

The problem is you need to install the Cayenne library. It available in Library Manager so this is very easy. Do this:
Title: Re: Error in the library
Post by: roccol00 on Jun 09, 2017, 09:18 am
Code: [Select]
Arduino:1.8.3 (Windows 7), Scheda:"Arduino/Genuino Uno"

In file included from C:\Users\Utente\Desktop\macchina\macchina.ino:2:0:

C:\Users\Utente\Documents\Arduino\libraries\Cayenne/BlynkSimpleShieldEsp8266_SoftSer.h:27:29: fatal error: ESP8266_SoftSer.h: No such file or directory

 #include <ESP8266_SoftSer.h>

                             ^

compilation terminated.

exit status 1
Errore durante la compilazione per la scheda Arduino/Genuino Uno.

Questo report potrebbe essere più ricco di informazioni abilitando l'opzione
"Mostra un output dettagliato durante la compilazione"
in "File -> Impostazioni"





I have inserted the cayenne library but now I am from this error
Title: Re: Error in the library
Post by: pert on Jun 09, 2017, 09:55 am
It turns out this code you found is written for use with an outdated version of the Blynk library. You can make it compile by installing Blynk library version 0.3.4:

There has been a lot of work on the Blynk library in the 1.5 years since v0.3.4 was released so you might want to try to rewrite the code to work with the latest release of that library.
Title: Re: Error in the library
Post by: roccol00 on Jun 09, 2017, 11:58 am
Code: [Select]
Arduino:1.8.3 (Windows 7), Scheda:"Arduino/Genuino Uno"

C:\Users\Utente\Desktop\macchina\macchina.ino: In function 'void setup()':

macchina:60: error: 'IPAddress' was not declared in this scope

  Blynk.begin(auth, "ssid", "password", IPAddress(192,168,1,100), 8442);

                                                                                    ^

exit status 1
'IPAddress' was not declared in this scope

Questo report potrebbe essere più ricco di informazioni abilitando l'opzione
"Mostra un output dettagliato durante la compilazione"
in "File -> Impostazioni"





Instead of "ssid" and "password" we have entered the data of our wifi network
Title: Re: Error in the library
Post by: pert on Jun 09, 2017, 12:07 pm
Add this include:
Code: [Select]
#include <IPAddress.h>
Title: Re: Error in the library
Post by: roccol00 on Jun 09, 2017, 06:00 pm
Code: [Select]
Arduino: 1.8.3 (Windows 7), Card: "Arduino / Genuino Uno"

C: \ Users \ User \ AppData \ Local \ Temp \ ccS7J8ZU.ltrans3.ltrans.o: In the `__static_initialization_and_destruction_0 'function:

E: \ machine \ New folder (2) \ machine / machine.in: 7: unspecified reference to `ESP8266 :: ESP8266 (SoftwareSerial &) '

Collect2.exe: Error: ld returned 1 output state

Output Status 1
Error while compiling for Arduino / Genuino Uno board.

This report might be richer in information by enabling the option
"Show detailed details when compiling"
In "File -> Settings"


Now I get this error
Title: Re: Error in the library
Post by: pert on Jun 09, 2017, 11:26 pm
Please post your full sketch. If possible you should always post code directly in the forum thread as text using code tags (</> button on the toolbar). This will make it easy for anyone to look at it, which will increase the likelihood of you getting help. If the sketch is longer than the forum will allow then it's ok to add it as an attachment.

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor then you will not  have access to this useful tool. I recommend using the standard Arduino IDE instead.

When your code requires a library that's not included with the Arduino IDE please always post a link(using the chain link icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger(Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.
Title: Re: Error in the library
Post by: roccol00 on Jun 10, 2017, 10:11 am
Code: [Select]
rduino: 1.8.3 (Windows 7), Card: "Arduino / Genuino Uno"

E: \ machine \ machine.ino: 3: 103: Fatal error: BlynkSimpleShieldEsp8266_SoftSer.h: No file or directory

#include <BlynkSimpleShieldEsp8266_SoftSer.h> // Set ESP8266 Serial Item

^

Completion is complete.

Output Status 1
Error while compiling for Arduino / Genuino Uno board.

This report might be richer in information by enabling the option
"Show detailed details when compiling"
In "File -> Settings"



We are creating a wireless machine that will be controlled by a smartphone.
But in filling out the program, this error comes out
Title: Re: Error in the library
Post by: pert on Jun 10, 2017, 10:36 am
this error comes out
We already fixed that error. Why didn't you post your sketch, as I requested in my last reply?
Title: Re: Error in the library
Post by: roccol00 on Jun 10, 2017, 12:29 pm
Code: [Select]

#define BLYNK_PRINT Serial   
#include <BlynkSimpleShieldEsp8266_SoftSer.h>                          // Set ESP8266 oggetto di serie
#include <SoftwareSerial.h>
#include <ESP8266_SoftSer.h>
SoftwareSerial EspSerial(2, 3);                                        // RX, TX
ESP8266 wifi(EspSerial);                                               // Si dovrebbe ottenere Auth Token nel Blynk App.
                                                                      // Vai alla impostazioni di progetto (icona dado).
char auth[] = "14dbb0d926e0464280e56443eb7df4ef";
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
#define m11 8
#define m12 9
#define m21 10
#define m22 11
void avanti()
{
  digitalWrite(m11, HIGH);
  digitalWrite(m12,LOW);
  digitalWrite(m21,HIGH);
  digitalWrite(m22,LOW);
}
void indietro()
{
  digitalWrite(m11, LOW);
  digitalWrite(m12,HIGH);
  digitalWrite(m21,LOW);
  digitalWrite(m22,HIGH);
}
void destra()
{
  digitalWrite(m11, HIGH);
  digitalWrite(m12,LOW);
  digitalWrite(m21,LOW);
  digitalWrite(m22,LOW);
}
void sinistra()
{
  digitalWrite(m11, LOW);
  digitalWrite(m12,LOW);
  digitalWrite(m21,HIGH);
  digitalWrite(m22,LOW);
}
void Stop()
{
  digitalWrite(m11, LOW);
  digitalWrite(m12,LOW);
  digitalWrite(m21,LOW);
  digitalWrite(m22,LOW);
}
void setup()
{
   // impostare tasso di console baud
  Serial.begin(9600);                                                               // Set ESP8266 velocità di trasmissione
                                                                                    // 9600 è raccomandato per Software Serial
  delay(10);
  EspSerial.begin(9600);
  delay(10);
 // Blynk.begin(auth,, "nome", "password");                                      //nome e password del wifi
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
  Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
  pinMode(m11, OUTPUT);
  pinMode(m12, OUTPUT);
  pinMode(m21, OUTPUT);
  pinMode(m22, OUTPUT);
}
BLYNK_WRITE(V1)
{
  int x = param[0].asInt();
  int y = param[1].asInt();                                                         //fai qualcosa con x e y
 
  if(y>220)
  avanti();
  else if(y<35)
  indietro();
  else if(x>220)
  destra();
  else if(x<35)
  sinistra();
  else
  Stop();
}
void loop()
{
  Blynk.run();
}


Sorry I was wrong to post!! :( 
now I insert the full sketch
Title: Re: Error in the library
Post by: pert on Jun 10, 2017, 12:36 pm
Please do this:
Title: Re: Error in the library
Post by: roccol00 on Jun 10, 2017, 12:49 pm
in file not exist preferences
Title: Re: Error in the library
Post by: pert on Jun 10, 2017, 07:19 pm
That's because your Arduino IDE is in Italian. You just need to translate the word Preferences to Italian, "Impostazioni". Was that so difficult?
Title: Re: Error in the library
Post by: roccol00 on Jun 12, 2017, 09:00 am
Code: [Select]
C: \ Users \ User \ Desktop \ machine / machine.in: 7: Unspecified reference to `ESP8266 :: ESP8266 (SoftwareSerial &) '

Collect2.exe: Error: ld returned 1 output state

I use Cayenne Library to version 0.3.4 in the folder: C: \ Users \ User \ Documents \ Arduino \ libraries \ Cayenne
I use the SoftwareSerial library to version 1.0 in the folder: C: \ Program Files (x86) \ Arduino \ hardware \ arduino \ avr \ libraries \ SoftwareSerial
Output Status 1
Error while compiling for Arduino / Genuino Uno board.


This is the error
Title: Re: Error in the library
Post by: pert on Jun 12, 2017, 11:24 am
Please delete C:\Users\User\Documents\Arduino\libraries\Cayenne
I think we have one more error to fix after this and then it will compile.
Title: Re: Error in the library
Post by: roccol00 on Jun 12, 2017, 01:08 pm
Code: [Select]
Arduino \ Tools C: \ Program Files (x86) \ Arduino \ Tools C: \ Program Files (x86) \ Arduino \ Hardware Tools: Arduino: 1.8.3 (Windows 7), Card: "Arduino / Genuino Uno" \ Arduino \ arduino \ builders -dump-prefs -logger =
C: \ Program Files (x86) \ Arduino \ libraries -libraries C: \ Users \ User \ Documents \ Arduino \ Arduino \ hardware \ tools \ avr -built-in-libraries \ Libraries -fqbn = arduino: avr: a -ide-version = 10803-building script
C: \ Users \ User \ AppData \ Local \ Temp \ arduino_build_588125 -warnings = none -build-cache C: \ Users \ User \ AppData \ Local \ Temp \ arduino_cache_5469 -prefs = build.warn_data_percentage = 75 -prefs = runtime.tools.avrdude.path =
C: \ Program Files (x86) \ Arduino \ hardware \ tools \ avr -prefs = runtime.tools.arduinoOTA. C: \ Program Files (x86) \ Arduino \ hardware \ tools \ avr -verbose C: \ Program Files (x86) \ Arduino \ hardware \ tools \ avr -prefs = runtime.tools.avr-gcc.path = \ Arduino \ arduino-builder -compile -logger = machine-hardware C: \ Program Files (x86) \ Arduino \ hardware-tools C: \ Program \ \ Arduino \ tools-builder C: \ Program Files (x86) \ Arduino \ hardware \ tools \ avr -built-in-libraries C: \ Program Files (x86) \ Arduino \ libraries -libraries C: \ Users \ User \ User \ AppData \ Local \ Temp \ arduino \ libraries C: \ Users \ User \ AppData \ Local -fqbn = arduino: avr: a -ide-version = 10803 -course
 C: \ Users \ User \ AppData \ Local \ Temp \ arduino_build_588125 - Warnings = \ temp \ arduino_cache_5469 -prefs = build.warn_data_percentage = 75 -prefs = runtime.tools.avrdude.path = C: \ Program Files (x86) \ Arduino \ hardware \ tools \ avr -prefs = runtime.tools.arduinoOTA.path = \ Ard Hardware \ tools \ avr -prefs = runtime.tools.avr-gcc.path = Machine \ New folder (2) \ machine \ hardware \ tools \ avr -verbose E: \
C: \ Program Files (x86) \ Arduino \ (Arsenal) \ Arduino \ arduino \ avrUse the 'arduino' core from the platform into the folder: C: \ Program Files (x86) \ Arduino \ Hardware \ Arduino \ avrReading used libraries ... "C: \ Program Files (x86) \ Arduino \ hardware \ tools \ avr / bin / avr-g ++" -c -g -Os -w -std = gnu ++ 11 - (-fc-threadsafe-statics -flto -w -xc ++ -E -CC -mmcu = atmega328p -DF_CPU = 16000000L -DARDUINO = 10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC: \ Programs ( X86) \ Arduino \ hardware \ Arduino \ avr \ cores \ arduino "" -IC: \ Program Files (x86) \ Arduino \ hardware \ arduino \ avr \ variants \ standard ""
C: \ Users \ User \ AppData \ Local \ Temp \ Arduino_build_588125 \ Arduino \ hardware \ tools \ avr / bin / avr-g ++ "-c -g -Os -w -std = \ sketch \ machine.no.cpp" -o "nul" "
C: \ Program Files (x86) Gnu ++ 11 -fpermissive -fn-exceptions- Fdata-sections -fno-threadsafe-statics -flto -w -xc ++ -E -CC -mmcu = atmega328p -DF_CPU = 16000000L -DARDUINO = 10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR " IC: \ Program Files (x86) \ Arduino \ hardware \ Arduino \ avr \ cores \ arduino "" -IC: \ Program Files (x86) \ Arduino \ hardware \ arduino \ avr \ variants \ standard " \ Arduino \ libraries \ Servo \ src ""
C: \ Users \ AppData \ Local \ Temp \ arduino_build_588125 \ sketch \ machine.ino.cpp "or" nul "" C: \ Program Files (x86) \ Arduino \ Hardware-tools-avg-bin-avg-g ++ -c -g -Os -w -std = gnu ++ 11 -fpermissive -none-exceptions- Fdata-sections -fno-threadsafe-statics -flto -w- Xc ++ -E -CC -mmcu = atmega328p -DF_CPU = 16000000L -DARDUINO = 10803 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC: \ Program Files (x86) \ Arduino \ hardware \ Arduino \ avr \ cordues \ arduino "" -IC: \ Program Files (x86) \ Arduino \ hardware \ arduino \ avr \ variants \ standard "" -IC: \ Program Files (x86) \ Arduino \ libraries \ Servo \ src "
C : \ Users \ User \ AppData \ Local \ Temp \ arduino_build_588125 \ preproc \ ctags_target_for_gcc_minus_e.cpp "" C: \ Users \ User \ AppData \ Local \ Temp \ arduino_build_588125 \ sketch \ machine.ino.cpp "E: \ machine \ Folder (2) \ machine \ machine.ino: 3: 103: fatal error: BlynkSimpleShieldEsp8266_SoftSer.h: No file or directory #include <BlynkSimpleShieldEsp8266_SoftSer.h> // Set ESP8266 serial object ^ Completion is finished.Using the Servo Library To version 1.1.2 in the folder:
C: \ Program Files (x86) \ Arduino \ libraries \ ServoOutput Status 1Error When compiling for the Arduino / Genuino Uno card.


I've deleted the cayenne library and now I get this error
Title: Re: Error in the library
Post by: pert on Jun 12, 2017, 01:31 pm
It seems like we're going in circles here. Please do this:
Title: Re: Error in the library
Post by: roccol00 on Jun 12, 2017, 04:49 pm
Code: [Select]
"C: \ Users \ User \ AppData \ Local \ Temp \ arduino_build_604642 \ libraries \ Cayenne \ utility \ utility.cpp.o" \ Local \ temp \ arduino_build_604642 \ libraries \ Cayenne \ utility \ BlynkHandlers.cpp.o " \ User \ AppData \ Local \ Temp \ arduino_build_604642 / core \ core.a "" -LC: \ Users \ User \ AppData \ Local \ Temp \ arduino_build_604642 \ libraries \ SoftwareSerial \ SoftwareSerial.cpp.o " Users \ User \ AppData \ Local \ Temp \ arduino_build_604642 "-lm
C: \ Users \ User \ AppData \ Local \ Temp \ cckLBQTg.ltrans3.ltrans.o: In function `__static_initialization_and_destruction_0 ':

E: \ machine \ New folder (2) \ machine / machine.in: 8: undefined reference to `ESP8266 :: ESP8266 (SoftwareSerial &) '

Collect2.exe: error: ld returned 1 exit status

I use the Servo library to version 1.1.2 in the folder: C: \ Program Files (x86) \ Arduino \ libraries \ Servo
I use the Cayenne Library to version 0.3.4 in the folder: C: \ Users \ User \ Documents \ Arduino \ libraries \ Cayenne
I use the SoftwareSerial library to version 1.0 in the folder: C: \ Program Files (x86) \ Arduino \ hardware \ arduino \ avr \ libraries \ SoftwareSerial
Exit status 1
Error while compiling for Arduino / Genuino Uno board.[code]

I always get the same error.
Title: Re: Error in the library
Post by: pert on Jun 12, 2017, 10:56 pm
Code: [Select]
I use the Cayenne Library to version 0.3.4 in the folder: C: \ Users \ User \ Documents \ Arduino \ libraries \ Cayenne
And now the Cayenne library is back... Why do we keep going in circles here? It's getting tiresome trying to help you.