Hello
Question: How to connect ESP8266 eg. “Blynk blink” to local server using IPv6 only? (IPv4 is not available because using cheapest Vultr VM Ubuntu).
Android smartphone is connecting to local server normally, but how to get the ESP8266 module connecting to local server.
At the moment problem come in the compiling phase of ESP8266 software, the Arduino compiler throw errors about IPv6 address.
• Hardware model + communication type: ESP8266 Wemos D1 mini v3
• Smartphone OS: Android 8.1.0
• Blynk local server: Server-0.39.4
• Blynk Library version: Arduino IDE blynk library 0.5.3
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "example";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "example";
char pass[] = "example";
void setup()
{
// Debug console
Serial.begin(9600);
//Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
Blynk.begin(auth, ssid, pass, IPAddress(HOW to add IPv6 address in here), 8080);
}
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!
}
Blynk.begin(auth, ssid, pass,“2001:0db8:85a3:0000:0000:8a2e:0370:7334”, 8080);
Thank you, but this doesn’t work on my Arduino IDE.
I get error during the compiling phase (partial log below).
Start of log:
Detecting libraries used…
…A lot of text
…
Generating function prototypes…
…A lot of text
…
Compiling sketch…
…
Blynk_ESP8266_DHT22_JR120_IP6v_v1:90: error: stray ‘\223’ in program
Blynk.begin(auth, ssid, pass,“2001:0db8:85a3:0000:0000:8a2e:0370:7334”, 8080);
^
Blynk_ESP8266_DHT22_JR120_IP6v_v1:90: error: stray ‘\224’ in program
C:\Users\XXXX\AppData\Local\Temp\arduino_modified_sketch_923025\Blynk_ESP8266_DHT22_JR120_IP6v_v1.ino: In function ‘void setup()’:
Blynk_ESP8266_DHT22_JR120_IP6v_v1:90: error: expected ‘)’ before ‘:’ token
Blynk.begin(auth, ssid, pass,“2001:0db8:85a3:0000:0000:8a2e:0370:7334”, 8080);
^
Using library ESP8266WiFi at version 1.0 in folder: C:\Users\XXXX\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WiFi
Using library Blynk at version 0.5.3 in folder: C:\Users\XXXX\Documents\Arduino\libraries\Blynk
Using library DHT_sensor_library at version 1.3.0 in folder: C:\Users\XXXX\Documents\Arduino\libraries\DHT_sensor_library
Using library Adafruit_Unified_Sensor at version 1.0.2 in folder: C:\Users\XXXX\Documents\Arduino\libraries\Adafruit_Unified_Sensor
exit status 1
stray ‘\223’ in program
End of log.
hi
I don’t see any issue about IPv6 in your log
@Gunner do you see anything about IPv6 ?
The stray ‘\224‘ and stray ‘\223’ messages are because the quotation mark characters you’re using to enclose the IPv6 address are the wrong type (presumably copied and pasted). Delete then and re-type them using the normal quote characters from your keyboard.
Pete.
2 Likes
Thank you, re-typing " " helped a little “The stray ‘\224‘ and stray ‘\223’ messages” are gone.
Still code doesn’t compile, now it throw new error message.
…
exit status 1
call of overloaded ‘IPAddress(const char [39])’ is ambiguous
Reminder: This code compiles normally if address is IPv4, but now goal is to use IPv6 address.
Did you work with IPv6 on ESP8266 before?
No newer worked with IPv6.
Maybe a good time to start? Unless you run something with IPv6, it would be hard to understand how to get Blynk connected.
1 Like
Ok, I can start using IPv6.
But still nobody in this community doesn’t know how to make it work on “Blynk blink + ESP2866”.