NHON NGUYEN in Discussions
最後のアクティビティ: 2023 年 1 月 24 日

There is exactly the same tutorial for my topic but I couldn't make it work. It worked like a charm on SMS service but it wasn't on call. Authentication shouldn't be a problem cause it's similar to SMS configuration. The remaining information that I've doubt is the "Body" part. I filled it like: From={+Twilio number}&To={+myNumber}&Body=CO2 concentration is exceeding the threshold value and being at :%%channel_1372010_field_3%% And also, the API URL is: https://api.twilio.com/2010-04-01/Accounts/{My AuthSID}/Calls.json I replaced my own information on the above items but It didn't make a call at all even when the TimeControl app run it. Hope to get your help. Make phone calls with Twilio using ThingHTTP Here is the POST format from the <https://www.twilio.com/docs/voice/make-calls# Twilio doc> . It looks like there isn't a body parameter or key. curl -X POST https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Calls.json \ --data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \ --data-urlencode "To=+14155551212" \ --data-urlencode "From=+15017122661" \ -u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN From twilio i want to get a call with voice response having channel data and text to speech part. say, the voice i want as 'Temperature is 100 degree farenhite, here 100 is the channel data. What i shall write in thingHTTP body to get the voice in call response along with data and text as speech. I am getting data voice but facing problem with that text part. Please help I think that question is better posed on a Twillio community. thinghttp twilio
rho jean mark Dedil in MATLAB Answers
最後のアクティビティ: 2021 年 1 月 1 日

im using twilio in thinghttp to send sms,i just want to know the difference of the number of sms that i can sent in free license and the student license
Sheila Hill in MATLAB Answers
最後のアクティビティ: 2020 年 12 月 8 日

I hate to ask but I have been struggling with this and just can't get it working. I set up a Twilio trial account and tested it sending an SMS to my cell phone. I set up a Thingspeak REACT to respond to data in one of my channels and then use ThingHTTP to write data to another channel. The part I can't get working is for a REACT to use ThingHTTP to get Twilio to send an SMS to my cell. I have read several tutorials and watched videos but just can't get there. The ThingHTTP screen has the following: API Key XXXYYYYZZZZ // there is a long key that thingspeak generates - as far as I know I don't use this anywhere URL https://api/twilio.com/2014-04-01/Accounts/xxxxmynumberyyyy/Messages // have aslo tried ...mynumberyyy/SMS/Messages HTTP Auth Username XXXXmyTwilioAccountSIDyyyy HTTP Auth Password XXXmyTwilioAuthTokenyyyy Method POST Content Type application/x-www-forms-urlencoded HTTP Version 1.1 HOST I left this blank Headers None added Body From=+15875555555&To=+15875555555&Body=Test Message 1 // not my real hone numbers Parse String I left this blank Any pointers would be greatly appreciated.
Wade Campbell in MATLAB Answers
最後のアクティビティ: 2019 年 12 月 1 日

I am using the example (to send an SMS from an Arduino) at https://www.instructables.com/id/Send-SMS-from-Arduino-over-the-Internet-using-ENC2/ I have triple checked the Twilio credentials entered into the ThingHTTP project and the ThingHTTP project's API key. The Arduino code and the serial output text are below... /* Send SMS from Arduino over the Internet using ENC28J60 and Thingspeak Change one line to use with ethernet shield Add sensor readings in the loop and a time interval Using Arduino UIP library from https://github.com/ntruchsess/arduino_uip Code based on Sparkfun's data logging service data.sparkfun.com URL encode function from http://hardwarefun.com/tutorials/url-encoding-in-arduino */ #include <SPI.h> //change the following line to #include <Ethernet.h> to use the eithent shield #include <Ethernet.h> // Enter a MAC address for your controller below. byte mac[] = { 0x00, 0x24, 0xd6, 0x7f, 0xa2, 0x54 }; //thingspeak server char server[] = "api.thingspeak.com"; //if DHCP fails, use a static IP IPAddress ip(192,168,0,199); // Initialize the Ethernet client library EthernetClient client; //API key for the Thingspeak ThingHTTP already configured const String apiKey = "<<my API code fromn ThingHTTP project>>"; //the number the message should be sent to const String sendNumber = "<<my cell phone number>>"; // format "+1nnnnnnnnnn" void setup() { Serial.begin(9600); //set up Ethernet: setupEthernet(); //send the sms Serial.println("Sending SMS"); //this function will send the sms //the first argument is the number to send to, formatted like this +12345678901 //the second argument is the body of the text message, which must be within URLEncode() sendSMS(sendNumber, URLEncode("Hello World!")); } void loop() { } void sendSMS(String number,String message) { // Make a TCP connection to remote host Serial.print(F("server: ")); Serial.println(server); // Serial.print("client.connect(server,80): "); // Serial.println(client.connect(server, 80)); if (client.connect(server, 80)) { //should look like this... //api.thingspeak.com/apps/thinghttp/send_request?api_key={api key}&number={send to number}&message={text body} Serial.println("client.connect(server, 80) is true"); client.print("GET /apps/thinghttp/send_request?api_key="); client.print(apiKey); client.print("&number="); client.print(number); client.print("&message="); client.print(message); client.println(" HTTP/1.1"); client.print("Host: "); client.println(server); client.println("Connection: close"); client.println(); Serial.print("GET /apps/thinghttp/send_request?api_key="); Serial.print(apiKey); Serial.print("&number="); Serial.print(number); Serial.print("&message="); Serial.print(message); Serial.println(" HTTP/1.1"); Serial.print("Host: "); Serial.println(server); Serial.println("Connection: close"); Serial.println(); Serial.println(F("TS Connection succeeded")); } else { Serial.println(F("TS Connection failed")); } // Check for a response from the server, and route it // out the serial port. if (client.connected()) { Serial.println(F("Server response...")); } while (client.connected()) { if ( client.available() ) { char c = client.read(); Serial.print(c); } } Serial.println(); Serial.println("End of reading from server"); client.stop(); } void setupEthernet() { Serial.println("Setting up Ethernet..."); // start the Ethernet connection: if (Ethernet.begin(mac) == 0) { Serial.println(F("Failed to configure Ethernet using DHCP")); // no point in carrying on, so do nothing forevermore: // try to congifure using IP address instead of DHCP: Ethernet.begin(mac, ip); } Serial.print("My IP address: "); Serial.println(Ethernet.localIP()); // give the Ethernet shield a second to initialize: delay(1000); } String URLEncode(const char* msg) { const char *hex = "0123456789abcdef"; String encodedMsg = ""; while (*msg!='\0'){ if( ('a' <= *msg && *msg <= 'z') || ('A' <= *msg && *msg <= 'Z') || ('0' <= *msg && *msg <= '9') ) { encodedMsg += *msg; } else { encodedMsg += '%'; encodedMsg += hex[*msg >> 4]; encodedMsg += hex[*msg & 15]; } msg++; } return encodedMsg; }

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.

モデレーター