Trouble using HTTP Post with Nimblelink cellular modem | ThingSpeak API | 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
Trouble using HTTP Post with Nimblelink cellular modem
No permission to create posts
March 15, 2020
8:47 pm
Avatar
gabrieldragon
New Member
Members
Forum Posts: 1
Member Since:
March 15, 2020
sp_UserOfflineSmall Offline

Hello, I have been trying to update data to channel using HTTP POST method. I am trying to use a nimblelink CAT 1 LTE cellular modem. I keep getting a "remote peer has closed the connection" error. I'm currently using a development kit to interface directly with the cell modem but will switch over to a microcontroller once I have this figured out. I am currently using AT commands, I am attaching a screenshot of my attempt to update via an HTTP Post.

Any help would be greatly appreciated!thingspeak_attempt.JPGImage Enlarger

sp_PlupAttachments Attachments
March 31, 2020
7:31 am
Avatar
cstapels
Moderator
Members


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

Perhaps play with the content length. I think its too short. A POST needs and extra new line at the end. I think the server is getting to the end of the content length before the content and new line is done.
Also you might have an easier time with a GET request. You can update the channel with a GET and the syntax is more simple. Does your hardware support a GET?

FYI, MATLAB answers is the preferred location for ThingSpeak Community support.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
11 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:

briskpanda, Dejw0089, Yassine Ben Salah, anis, 43994554AKS, suda

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457