Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Bare en meget basik eksempelkode
- #include <wifi.h>
- #include <motor.h>
- float rainData = 0;
- void setup() {
- while (wifi.isConnected() == false) {
- wifi.connect(wifiName,password);
- }
- }
- void loop() {
- rainData = wifi.read(websitename);
- if (regnData > 1) {
- motor.close();
- }
- else {
- motor.open();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement