Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "UbidotsMicroESP8266.h"
- #define SSID "LTFE-guest"
- #define PASS "ltfewifi2020"
- #define TOKEN "A1E-sGFWwTy88vtjWuwHCrj2acIFHlFo9F" //
- #define ID "5b6eec9fc03f972d998f25f4" // Replace it with your Ubidots' variable ID
- #define ID2 "5b6eec98c03f972d998f25ee"
- #define ID3 "5b6eec91c03f972d998f25e3"
- Ubidots client(TOKEN);
- void setup() {
- Serial.begin(115200);
- client.wifiConnection(SSID,PASS);
- }
- void loop() {
- float value = 4;
- float value2 = 5;
- float value3 = 6;
- client.add(ID,value);
- client.add(ID2,value2);
- client.add(ID3,value3);
- client.sendAll();
- delay(5000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement