2016:yun_notes
This is an old revision of the document!
YUN Notes
- Default login is root and password is arduino
In order to use the DD-Wrt side of the YUN with Arduino it is necessary to use the bridge function. This example shows using an MQTT client on the Arduino side hooked to the DD-Wrt side with the bridge.
#include <pubsubclient.h> #include <yunclient.h>
void callback(char* topic, byte* payload, unsigned int length) { // handle message arrived }
YunClient yun; PubSubClient client("192.168.2.210", 1883, callback, yun);
void setup() {
Bridge.begin();
}
2016/yun_notes.1459858933.txt.gz · Last modified: 2016/04/05 08:22 by 75.177.137.2