나는 Ubidots에 코드를 사용하여 데이터를 보내는데 성공했지만, 지금은 보낼 수 없다는 문제를 만났고 다른 Ubidots 계정을 사용하려고 시도했다. 또한 작동하지 않습니다. 누군가가 이걸 도와 줄 수 있니, 고마워. PS. 이 코드는 장치를 WIFI로 연결할 수는 있지만 Ubidot에 데이터를 보낼 수는 없습니다.Wizfi250을 가진 Arduino UNO (9600)는 Ubidots에 데이터를 보낼 수 없다
#include "UbidotsWizFi250.h"
#define TOKEN "YNbIJdlwtH8s9p4xYNlZTuqhB6bfYY" // Replace it with your Ubidots token
#define ID "5795e2f876254249c8ce246a" // Replace it with your Ubidots' variable ID
#define WLAN_SSID "XXXXX" // Your WiFi SSID, cannot be longer than 32 characters!
#define WLAN_PASS "xxxxxxxxx" // Replace it with your WiFi pass
// Security can be OPEN, WEP, WPA, WPAAES, WPA2AES, WPA2TKIP, WPA2
#define WLAN_SECURITY "WPA2"
Ubidots client(TOKEN);
void setup() {
Serial.begin(9600);
while(!client.wifiConnection(WLAN_SSID, WLAN_PASS, WLAN_SECURITY));
}
void loop() {
int value = analogRead(A4);
client.add(ID,value);
client.sendAll();
Serial.println("--------------------");
delay(1000);
}
https://github.com/NaSao/MoistureAlarm/blob/master/pushUbidotsData.ino 여기 내 코드를 찾을 수 있습니다. –