POST to thingspeak.com using ESP8266 and Lua | 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
POST to thingspeak.com using ESP8266 and Lua
No permission to create posts
July 31, 2018
8:05 am
Avatar
vkadal
New Member
Members
Forum Posts: 2
Member Since:
July 31, 2018
sp_UserOfflineSmall Offline

I am trying to send data to thingspeak.com

When I type the following on the browser address bar, my channel in the thingsspeak gets updated

https://api.thingspeak.com/update?api_key=JYHBUME7WXOZ1B50&field1=12

I am trying to send the same address using ESP8266 using POST methid.

I have code to connect to WiFi network. I need POST method command. Can anyone help?

August 9, 2018
3:37 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 510
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

The easiest way is to use the thingSpeak communication library. Here is a good example.
https://www.mathworks.com/help/thingspeak/read-and-post-temperature-data.html

This one shows you how to build the POST manually. its harder, buy may offer more flexibility in some cases.
https://www.mathworks.com/help/thingspeak/MoistureMonitor.html

Here is the reference page for the write data method, which works with GET and POST.
https://www.mathworks.com/help/thingspeak/writedata.html

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online: SGDamiano1
35 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

petersevruk, SGDamiano1, seanoz60, Beverlytreta, MartaKah, genevievecu69

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457