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: 365
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:
32 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:

Georgesic, BalladolbineAboth, Wayneamure, MattonAboth, ginatm2, Spreeuw

Administrators: Hans: 387, lee: 457