Hi guys,
just want to ask you. I want to use Intel Edison as Blynk local server, because I saw that it can be done with Raspberry Pi. Is the procedure same with Intel Edison like with Raspberry Pi?
Thanks in advance
Itâs a java based server, so if you can run the Java runtime on it, yes you can! The procedure will probably be more or less the same to set stuff up. Install java and run the server.jar
@Matejic in case of success - please share with us steps âhow toâ so I could include it to Blynk Server documentation.
Yesterday, I run the Blynk local server on Intel Edison and all work, Administration Panel UI work.
But I have problem with my arduino mega + esp8826. Arduino mega and esp was work on your cloud but donât work on my server.
When I want to upload sketch on Arduino mega he show me the problem with IPAddress.
Here is my sketch that I run Blynk on Arduino Mega over ESP8266-01:
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266_HardSer.h>
#include <BlynkSimpleShieldEsp8266_HardSer.h>
#include <SimpleTimer.h>
#include <dht11.h>
//-------------------------
dht11 DHT;
#define DHT11_PIN 12
// Set ESP8266 Serial object
#define EspSerial Serial3
ESP8266 wifi(EspSerial);
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "TOKEN";
SimpleTimer timer;
void setup()
{
// Set console baud rate
Serial.begin(9600);
delay(10);
// Set ESP8266 baud rate
EspSerial.begin(115200);
delay(10);
Blynk.begin(auth, wifi, "SSID", "PASSWORD", IPAddress(192,168,1,8));
timer.setInterval(3000L, sendUptime);
}
void loop()
{
Blynk.run();
timer.run(); // Initiates SimpleTimer
int chk;
chk = DHT.read(DHT11_PIN);
sendUptime();
}
void sendUptime()
{
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(10, DHT.temperature,1); //virtual pin
Blynk.virtualWrite(11, DHT.humidity,1); // virtual pin
}
When I upload sketch he show me the problem âIPAddressâ was not declared in this scope.
Can someone help me with this?
Just put â192.168.1.8â (with quotes) in it. Lose the IPAddress part
I will do it, but for now I must try to do that my arduino mega work with server. Will do some demonstration video with local server and intel edison but for now I must see why arduino donât want to communicate with local server.
@Lichtsignaal I set âIPAddress(192.168.1.8)â and I upload the sketch but mega donât communicate with local server only in console I see that Mega connected on router.
I didnât generate self-signed certificates and I donât know is this is needed or not. Just default setup from running jar server file
The certificates are not needed, but you have to enter the Blynk.begin correctly, so without the IPAddress part and the ip adress between"
@Lichtsignaal I reseive in console of mega:
[19] Blynk v0.3.3-beta
[520] Connecting to router
[3575] IP: +CIFSR:STAIP,"192.168.1.3"
+CIFSR:STAMAC,"5c:cf:7f:12:44:e1"
OK
[3603] Connected to WiFi
[10482] Invalid auth token
[20912] Invalid auth token
[31242] Invalid auth token
[41675] Invalid auth token
[52002] Invalid auth token
[62434] Invalid auth token
[72865] Invalid auth token
[83297] Invalid auth token
I donât know what is problem with token. Token is the same from blynk app
@Lichtsignaal
I found the problem with connecting on Blynk local server.
When I change the code to this
Blynk.begin(auth, wifi, âSSIDâ, âPASSWORDâ, â192.168.1.8â);
Mega connect on server and blynk app work with open console and connected on PC, but when I close console he disconnect from the server.
What can be te problem with this?
That is really weird. Are you sure you arenât using double com ports or something? Are you connecting the Wifi on another com port than console? Auth token can be checked very easily, that either works or it doesnât