2016:yun_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
2016:yun_notes [2016/04/05 08:22] – 75.177.137.2 | 2016:yun_notes [2016/04/05 08:26] (current) – 75.177.137.2 | ||
---|---|---|---|
Line 7: | Line 7: | ||
# | # | ||
# | # | ||
- | |||
void callback(char* topic, byte* payload, unsigned int length) { | void callback(char* topic, byte* payload, unsigned int length) { | ||
// handle message arrived | // handle message arrived | ||
Line 17: | Line 16: | ||
| | ||
| | ||
+ | |||
+ | |||
+ | ==== The aha Moment ==== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Instead of doing this with EthernetClient, | ||
+ | |||
+ | # | ||
+ | ... | ||
+ | | ||
+ | | ||
+ | ... | ||
+ | | ||
+ | ... | ||
+ | | ||
+ | |||
+ | you do this with the Yun: | ||
+ | |||
+ | # | ||
+ | ... | ||
+ | | ||
+ | | ||
+ | ... | ||
+ | | ||
+ | ... | ||
+ | | ||
+ | |||
+ | The bridge opens the connection to the outside world from the Arduino via the OpenWRT host. |
2016/yun_notes.1459858952.txt.gz · Last modified: 2016/04/05 08:22 by 75.177.137.2