QuestionsCategory: General QuestionAT command: post request to local server using AT command
shilpa dandwani asked 5 years ago

hello all,
i am trying to interface arduino with nodeMCU and wants to send a data string to my local server URI using AT commands. i am trying for it from long time but each time i face a problem of 404 not Found with command in a code form , in spite of this it also does not work with serial monitor. 
if anyone have any knowledge please help me as soon as possible.
my code is as follows
String data=”B=205,1,1,1,0&V=0,2,9,150,16″;
String uri=”/api/Data”;
String server=””;

String postRequest =
“POST ” + uri + ” HTTP/1.0\r\n” +
“Host: ” + server + “\r\n” +
“Accept: *” + “/” + “*\r\n” +
“Content-Length: ” + data.length() + “\r\n” +
“Content-Type: application/json\r\n” +
“\r\n” + data;
String sendCmd = “AT+CIPSEND=”;