Sending update through serial AT command does not update channel feed | ESP Wi-Fi | 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
Sending update through serial AT command does not update channel feed
No permission to create posts
August 16, 2018
5:42 am
Avatar
rweiser
New Member
Members
Forum Posts: 1
Member Since:
August 16, 2018
sp_UserOfflineSmall Offline

Hello,

I am trying to update the channel feed using the Arduino talking to the ESP8266 via AT commands. Everything seems to work fine but when I send the command

GET https://api.thingspeak.com/update?api_key=VB552XQVR6RDJ7ZM&field1=0

The serial monitor does not respond back after sending the command. If I send another command afterwards it responds as fail.

AT+CIPMUX=1

OK
AT+CIPSTART=0,"TCP","184.106.153.149",80
0,CONNECT

OK
AT+CIPSEND=0,77

OK
> CIPCLOSE=0

busy s...

Recv 77 bytes
0,CLOSED
SEND FAIL

August 16, 2018
11:30 am
Avatar
cstapels
Moderator
Members


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

I'm counting 71 bytes in your message. I think your connection may fail because its waiting for you to send six more bytes that never come.
Try changing to AT+CIPSEND=0,71 or 72 and let us know what happens.

August 27, 2018
8:06 am
Avatar
igorok
New Member
Members
Forum Posts: 1
Member Since:
August 27, 2018
sp_UserOfflineSmall Offline

Yes, I count 67 chars + 4 = chr(13) + chr(10) + chr(13) + chr(10). This symbols must be at end of string. Another way the server dont undersand finish operation or wait for 77 bytes, but receive only 67.

Forum Timezone: America/New_York

Most Users Ever Online: 166

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