Hi, I'm using HTTP template of xdk and I kept everything same except:
There is no problem when server returns an error response such as 401 it shows that response received but when request is successful and server returns code 200 XDK shows log:
INFO | XDK DEVICE 1: HttpRestClientRequestSentCallback: HTTP request failed to send. error=1357 (Note : RC_HTTP_CLIENT_NO_RESPONSE-1387 , RC_HTTP_SEND_ERROR-1357) INFO | XDK DEVICE 1: Error in XDK110 Application package. INFO | XDK DEVICE 1: Package ID: 153 INFO | XDK DEVICE 1: Module ID: 12 INFO | XDK DEVICE 1: Severity code: 2 INFO | XDK DEVICE 1: Error code: 110
Solved! Go to Solution.
I have Wifi with Internet connectivity. I have configured below parameters in AppController.h file.
#define WLAN_SSID "xxx" #define WLAN_PSK "xxx" #define DEST_SERVER_HOST "postman-echo.com" #define HTTP_SECURE_ENABLE UINT32_C(1) #define SNTP_SERVER_URL "0.de.pool.ntp.org"
GET and POST operation were successfully without any error.