SARA-R4/N4 series - AT Commands Manual
UBX-17003787 - R09
21 HTTP
Page 223 of 307
Parameter
Type
Description
<http_status_code> Number
HTTP status code reported in the server response header after a GET FOTA update
file request. This parameter is issued only for AT+UHTTPC=<profile_id>,100,<path>
AT command.
<md5_sum>
String
MD5 checksum of the FOTA update file. This parameter is issued only for AT
+UHTTPC=<profile_id>,100,<path> AT command.
21.3.4 Notes
• The +UHTTPC command has a default timeout setting set to 180 s. The timeout is counted from the last
successful network read or send operation performed by the HTTP application, so in a real timeout case
the application might be executing a command more than 180 s.
• The data string must not exceed the maximum length of 128 bytes.
• If <http_command>=4 (POST a file) and the <param2>=3 (multipart/form-data), then the module
automatically encapsulates the file content in the following multipart/form-data HTTP request:
--U1Blox2Http3Unique4Boundary5\r\n
Content-Disposition: form-data; name="file_post"; filename="<param3>"\r\n
Content-Length: <length of file specified with param3>\r\n
Content-Type: application/octet-stream\r\n
\r\n
<content of file specified with param3>\r\n
--U1Blox2Http3Unique4Boundary5--\r\n
\r\n
SARA-R4 / SARA-N4
• <http_command> = 100 is not supported.
21.4 HTTP protocol error +UHTTPER
+UHTTPER
SARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412M
Modules
SARA-N4
Syntax
PIN required
Settings saved Can be aborted
Response time Error reference
Attributes
full
No
No
No
-
21.4.1 Description
Retrieves the error class and code of the latest HTTP operation on the specified HTTP profile.
21.4.2 Syntax
Type
Syntax
Response
Example
Set
AT+UHTTPER=<profile_id>
+UHTTPER: <profile_id>,<error_
class>,<error_code>
OK
AT+UHTTPER=1
+UHTTPER: 1,0,0
OK
21.4.3 Defined values
Parameter
Type
Description
<profile_id>
Number
HTTP profile identifier, in range 0-3
<error_class>
Number
List of the allowed values is available in
<error_code>
Number
Value of class-specific error codes (reply code if class is 0). When <error_class>=10
(wrong HTTP API usage), the allowed <error_code>; values are listed in