Newbie difficulty | ThingSpeak Apps | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
Newbie difficulty
Avatar
josephny
New Member
Forum Posts: 1
sp_UserOfflineSmall Offline
1
February 16, 2017 - 12:59 pm
sp_Permalink sp_Print

Struggling to get my first Thingtweet out.

 

Using an ESP8266 shield on a Mega with SoftwareSerial and this code isn't working.

What am I not seeing that right in front of my eyes:

 

tsData = "api_key=blahblahblah&status=working";
             
     espSerial.println("POST /apps/thingtweet/1/statuses/update HTTP/1.1");
     espSerial.println("Host: api.thingspeak.com");
     espSerial.println("Connection: close");
     espSerial.println("Content-Type: application/x-www-form-urlencoded");
     espSerial.print("Content-Length: ");
     espSerial.println(tsData.length());
     espSerial.println();
     espSerial.println(tsData);
 

Thank you!

Joseph

Avatar
rw950431

Forum Posts: 252
sp_UserOfflineSmall Offline
2
February 17, 2017 - 5:46 am
sp_Permalink sp_Print

Based off https://github.com/iobridge/ThingSpeak-Arduino-Examples/blob/master/Ethernet/Arduino_to_ThingTweet.ino it seems..

 

Do you see anything printed out in return?  Error messages or other stuff?

 

Does your thingtweet work from another source (you can use something like Chrome's postman extension to test from the browser)?

 

Any reason you choose SoftwareSerial on the mega when you have 4 real serial ports to play with?  Using the real thing is always more reliable.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: cstapels, jacktheripper125
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

Nsneilotof

angieus2

goldiepw11

BinanceoSt

gnarender123@gmail.com

edenderest

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee