2016:yun_notes
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
2016:yun_notes [2016/04/05 08:22] – created 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 | ||
} | } | ||
- | |||
| | ||
| | ||
- | |||
void setup() | void setup() | ||
{ | { | ||
+ | | ||
+ | | ||
+ | |||
+ | ==== 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.1459858933.txt.gz · Last modified: 2016/04/05 08:22 by 75.177.137.2