HTTP 200 OK

This is a UBLOX Sara R410M Shield from Sparkfun.com

I gave up on TCP connections to Hologram…

I did get HTTP to send data to www.thingspeak.com for my weather monitor.

I get a positive response from thingspeak and can verify that by looking at the Sara R4 file system and a file I named GetFile captures the response:

AT+URDFILE="GetFile"
+URDFILE: "GetFile",815,"HTTP/1.1 200 OK
Server: nginx/1.7.5
Date: Mon, 16 Sep 2019 18:34:50 GMT
Content-Type: application/json; charset=utf-8
Connection: close
Vary: Accept-Encoding
Status: 200 OK
X-Frame-Options: SAMEORIGIN
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH
Access-Control-Allow-Headers: origin, content-type, X-Requested-With
Access-Control-Max-Age: 1800
ETag: W/"cc66a634c5a2d2ca77655669602faea1"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 323c546f-9831-4ce4-8209-f25eb60e6e81

{"channel_id":6xxxxxx,"created_at":"2019-09-16T18:34:50Z","entry_id":9,"field1":"
5","field2":"34","field3":"6","field4":null,"field5":null,"field6":null,"field7"
:null,"field8":null,"latitude":null,"longitude":null,"elevation":null,"status":"
NW 18MPH"}}}"}"
OK

The HTTPC command, however, times out and returns negative status after the 180s default time out.

AT+UHTTP=0,7,120
OK
AT+UHTTP=0
OK
AT+UHTTP=0,0,"184.106.153.149"
OK
AT+UHTTPC=0,1,"/update.json?api_key=PWxxxxxxxxxxxxxxxx&field1=6&field2=35&field3=6
&status=NW%2018MPH","GetFile"
OK
180 seconds later:
+UUHTTPCR: 0,1,0

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.