Benjamin Cortez in MATLAB Answers
上次活动时间: 2020-1-28

I explain, under an alternative internet, I can send information without any problem from the Arduino to ThingSpeak, but when I connect to the network of my work (Ministry of Housing and Urbanization of Chile), it fails to send the applications, or I think it sends them but it is not able to receive answers .. In some occasions it does not solve the DNS, or in others, it resolves them, but it throws error 401 Unauthorized. So, I need to know what exactly the problem is, in order to send a ticket to those who are responsible for modifying the network here. To be more exact, I use an ENC28J60 module I would appreciate any help, if more information is missing just ask me, thank you and have a good day.
Digital Home in MATLAB Answers
上次活动时间: 2020-1-26

Hi guys, I successfully installed standalone Thingspeak on Ubuntu. Unfortunatelly I'm stuck little bit just now. As a newbie I have been searching any usuable tips to upload data by enc28j60 into the local thngspk for last 3 days and - nothing usuable. Every sketch for enc28j60 with ethercard library I've found contains definition of server like this: const char website PROGMEM = "api.thingspeak.com"; (for example here) I need to replace this domain address by IP local 192.168.0.159:3000. A plain substitution of text in brackets doesn't work. Could anybody suggest me any hint at least? How and where shall I change a mentioned code described on the hyperlink? Eventually, this joined sketch for ESP8266 with AT comands is workable - hence I'm sure the local server is OK. Thank you very much Tom . . . String password = "xxxxx"; // hidden #define IP "192.168.0.159" // IP address of thingspeak.com String GET = "GET /update?key=xxxxxT"; // hidden . . . String cmd = "AT+CIPSTART=\"TCP\",\""; cmd += IP; cmd += "\",3000"; esp8266Module.println(cmd); Serial.println(cmd); delay(5000); if(esp8266Module.find("Error")){ if(DEBUG){ Serial.println("ERROR while SENDING"); } return; } cmd = GET + "&field1=" + voltage1 + "&field2=" + voltage2 + "&field3=" + voltage3 + "&field4=" + voltage4 + "\r\n"; esp8266Module.print("AT+CIPSEND="); esp8266Module.println(cmd.length()); delay(15000); if(esp8266Module.find(">")) { esp8266Module.print(cmd); if(DEBUG){ Serial.println("Data sent"); } }else { esp8266Module.println("AT+CIPCLOSE"); if(DEBUG){ Serial.println("Connection closed"); } }

关于 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.