Veerasai in Discussions
上次活动时间: 2025-7-23

I'm facing an issue where my Thinkspeak graph is not displaying, even though I'm using exactly the same code as my friend. The code works perfectly in their Thinkspeak account, but not on mine. I've checked the API keys, channel settings, and data formats, but everything seems similar. Has anyone else faced this problem, or do you have tips on what to check next? Suggestions are welcome! Thinkspeak Graph Not Displaying While Same Code Works for Friend I would focus on the data formats. Perhaps try to read thier data instead of yours and then operate on it. Often times, spaces or weird characters in just one entry can muck up a whole read when MATLAB tries to figure out if something is a string or a number for example. The ThingSpeak platform is deterministic though, if everything is truly exactly the same, the output will be the same. Feel free to share some examples here, we can look at your stuff and see if we spot the issue. thinkspeak troubleshooting iot
Imrul Hasan in MATLAB Answers
上次活动时间: 2023-10-11

0. at command => AT Fail 0. at command => AT+CWMODE=1 Fail 0. at command => AT+CWJAP="knapsack","namespace" Fail 0. at command => AT+CIPMUX=1 Fail 0. at command => AT+CIPSTART=0,"TCP","api.thingspeak.com",80 #include <SoftwareSerial.h> #define RX 2 #define TX 3 //#define RX 19 //#define TX 18 String AP = "knapsack"; //AP NAME String PASS = "namespace"; //AP PASSWORD String API = "FNFJ7KDHJK4F3IU2"; //Write API KEY String HOST = "api.thingspeak.com"; String PORT = "80"; String field = "Random"; int countTrueCommand; int countTimeCommand; boolean found = false; int valSensor = 1; SoftwareSerial esp8266(RX, TX); void setup() { Serial.begin(9600); esp8266.begin(115200); sendCommand("AT", 5, "OK"); sendCommand("AT+CWMODE=1", 5, "OK"); sendCommand("AT+CWJAP=\"" + AP + "\",\"" + PASS + "\"", 20, "OK"); } void loop() { valSensor = getSensorData(); String getData = "GET /update?api_key=" + API + "&" + field + "=" + String(valSensor); sendCommand("AT+CIPMUX=1", 5, "OK"); sendCommand("AT+CIPSTART=0,\"TCP\",\"" + HOST + "\"," + PORT, 15, "OK"); sendCommand("AT+CIPSEND=0," + String(getData.length() + 4), 4, ">"); esp8266.println(getData); delay(1500); countTrueCommand++; sendCommand("AT+CIPCLOSE=0", 5, "OK"); } int getSensorData() { return random(1000); // Replace with your own sensor code } void sendCommand(String command, int maxTime, char readReplay[]) { Serial.print(countTrueCommand); Serial.print(". at command => "); Serial.print(command); Serial.print(" "); while (countTimeCommand < (maxTime * 1)) { esp8266.println(command);//at+cipsend if (esp8266.find(readReplay)) //ok { found = true; break; } countTimeCommand++; } if (found == true) { Serial.println("OYI"); countTrueCommand++; countTimeCommand = 0; } if (found == false) { Serial.println("Fail"); countTrueCommand = 0; countTimeCommand = 0; } found = false; }
Alvaro Osorio in MATLAB Answers
上次活动时间: 2020-9-8

I need to read database from a cloud storage (e.g dropbox or onedrive) with "thingspeak". Do you know the steps? 1. database of the date and precipitations hosted in a cloud. 2. Visualize data and realize an alert system.

关于 ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.