Hey Blynk Community!
I had to reinstall my old mac and unfortunately i lost my arduino project files.
Blynk was running fine over Ethernet and Local PiServer.
Now i want to compile some sample codes but after updating ArduinoOSX and Blynk Library i alway get the error message below.
My Hardware:
• Mega2560+W5100 over Ethernet.
• Local Blynk RaspPI Server, running and connectable via app.
• newest Blynk Library, newest Arduino Build
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "hidden";
#define W5100_CS 10
#define SDCARD_CS 4
void setup()
{
// Debug console
Serial.begin(9600);
pinMode(SDCARD_CS, OUTPUT);
digitalWrite(SDCARD_CS, HIGH); // Deselect the SD card
Blynk.begin(auth);
// You can also specify server:
//Blynk.begin(auth, "blynk-cloud.com", 80);
Blynk.begin(auth, IPAddress(000,000,000,00), 1234);
}
void loop()
{
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}
```cpp
void loop()
I get the error message:
In file included from /Applications/Arduino.app/Contents/Java/libraries/Ethernet/src/Dns.cpp:8:0:
/Applications/Arduino.app/Contents/Java/libraries/Ethernet/src/Dns.cpp: In member function ‘uint16_t DNSClient::BuildRequest(const char*)’:
/Applications/Arduino.app/Contents/Java/libraries/Ethernet/src/utility/w5100.h:457:25: warning: result of ‘(256 << 8)’ requires 18 bits to represent, but ‘int’ only has 16 bits [-Wshift-overflow=]
#define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) )
~^
/Applications/Arduino.app/Contents/Java/libraries/Ethernet/src/Dns.cpp:164:18: note: in expansion of macro ‘htons’
twoByteBuffer = htons(QUERY_FLAG | OPCODE_STANDARD_QUERY | RECURSION_DESIRED_FLAG);
^~~~~
Sketch uses 21348 bytes (8%) of program storage space. Maximum is 253952 bytes.
Global variables use 666 bytes (8%) of dynamic memory, leaving 7526 bytes for local variables. Maximum is 8192 bytes.
Any help much appreciatet!