BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Do Blynk Support Ardunio YUN?

#1

Dear sir,
I had a Seeeduino which is fully compatible with Ardunio YUN. I am difficlut to get it link to Blynk cloud .
The board had a linux with ethernet and wifi, and Ardunio. We can test the bridge function:
// Make a HTTP request:
client.get(“http://www.arduino.cc/asciilogo.txt”);
But some how the DHCP and program static IP all no result. My board already boot up with linux part dhcp to homenetwork. I search see some example same as me, but not solved yet. so I need to ask it bylnk work for Ardunio, should we use bridge function. why blynk cannot direct use the exist network link, like above command. if I need hack it where could I find blynk.begin code.
root@Seeed:~# ifconfig
eth0 Link encap:Ethernet HWaddr A8:40:41:14:5A:E3
inet addr:10.0.0.35 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47045 errors:0 dropped:26645 overruns:0 frame:0
TX packets:6846 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4833785 (4.6 MiB) TX bytes:487729 (476.2 KiB)
Interrupt:5

eth0:9 Link encap:Ethernet HWaddr A8:40:41:14:5A:E3
inet addr:172.31.255.254 Bcast:172.31.255.255 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:5

eth1 Link encap:Ethernet HWaddr A8:40:41:14:5A:E2
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:4

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:550 errors:0 dropped:0 overruns:0 frame:0
TX packets:550 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:57475 (56.1 KiB) TX bytes:57475 (56.1 KiB)

wlan0 Link encap:Ethernet HWaddr A8:40:41:14:5A:E0
inet addr:192.168.240.1 Bcast:192.168.240.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:0 (0.0 B) TX bytes:4156 (4.0 KiB)

root@Seeed:~#
I try different combination in static IP setting, are all not working.
The arduino YUN has two CPU, one run Linux with ethernet and wifi, one is ardunino. the two can talk to each other with bridge examples, but I cannot make blynk connect!
Sample code and hack path is appreciate.

0 Likes

#2

Have you tried using our example for YUN?
https://github.com/blynkkk/blynk-library/tree/master/examples/BoardsAndShields/Arduino_Yun

0 Likes

#3

My issue is solved. Thank you very much!
Amazing, It is working.

3170] Blynk v0.3.4 
[5001] Connecting to blynk-cloud.com:8442 
[5356] Ready (ping: 175ms). 

I try to add similar code, but failed. I had call bridge.begin. it just need include bridge.h

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <Bridge.h>
#include <BlynkSimpleYun.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "56d4c858c3af494ba8284d7f97335d4d"; // Put your Auth Token here. (see Step 3 above)

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth);
  // Or specify server using one of those commands:
  //Blynk.begin(auth, "blynk-cloud.com", 8442);
  //Blynk.begin(auth, server_ip, port);
}

void loop()
{
  Blynk.run();
}
0 Likes