Sketch: programazioa
Koadro honetan ikus dezakezu liburutegia kargatu ondoren Arduino MKR Wifi 1010 plakara bidaliko dugun programa:
/* Arduino IoT Cloud Variables description The following variables are automatically generated and updated when changes are made to the Thing flotazioaren altuera; Variables which are marked as READ/WRITE in the Cloud Thing will also have functions // gure Arduino Cloud plataformako erabiltzailera igo dugun liburutegi propioa #include <WiFiNINA.h> SFE_BMP180 pressure; #include "thingProperties.h" |
void setup() { initProperties(); // Konektatu Arduino IoT Cloud-era delay(500); |
void loop() { if (ArduinoCloud.connected() == 0) { Serial.println(" "); double T,P; // Datuen irteera "serie monitore" bidez // Tenperatura datuak ºC eta ºF-tan Serial.print("Temperatura: "); |