Advertisement
Guest User

PU 1.D 2019

a guest
Oct 14th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Bare en meget basik eksempelkode
  2. #include <wifi.h>
  3. #include <motor.h>
  4. float  rainData = 0;
  5. void setup() {
  6.   while (wifi.isConnected() == false) {
  7.     wifi.connect(wifiName,password);
  8.   }
  9.   }
  10.  
  11. void loop() {
  12.   rainData = wifi.read(websitename);
  13.   if (regnData > 1) {
  14.     motor.close();
  15.     }
  16.   else {
  17.     motor.open();
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement