Newbie difficulty | ThingSpeak Apps | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





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

sp_Feed sp_TopicIcon
Newbie difficulty
No permission to create posts
February 16, 2017
12:59 pm
Avatar
josephny
New Member
Members
Forum Posts: 1
Member Since:
February 16, 2017
sp_UserOfflineSmall Offline

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

February 17, 2017
5:46 am
Avatar
rw950431

Top
Members
Forum Posts: 262
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

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:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

BarryMaync, ThomasRougs, DonaldGen, prince, JrGordon, Elamsweems

Administrators: Hans: 387, lee: 457