WIO lite W600 HTTP POST

A low-cost and pre-certified module, the w600 Module is ready to help scale your project into a product. Leave feedback and questions here!

Moderators: lily.li, violet, seth.welday, jellyfish, crail.lyu, bill

Post Reply
info61
Pre-kindergarten
Pre-kindergarten
Posts: 9
Joined: Tue May 03, 2016 3:39 pm
Contact:

WIO lite W600 HTTP POST

Post by info61 » Sun Dec 22, 2019 1:57 am

Are there program examples available showing access to internet resources?
Claus Kuehnel - www.ckuehnel.ch

User avatar
salmanfarisvp
Elementary-1
Elementary-1
Posts: 177
Joined: Sun May 20, 2018 2:02 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Linklt One , BeagleBone Green , ReSpaker
Contact:

Re: WIO lite W600 HTTP POST

Post by salmanfarisvp » Mon Dec 23, 2019 2:05 pm

Hi,

You can perform the process using the provided AT Command and here is the link: W600 AT Command list
Thank You :) .

info61
Pre-kindergarten
Pre-kindergarten
Posts: 9
Joined: Tue May 03, 2016 3:39 pm
Contact:

Re: WIO lite W600 HTTP POST

Post by info61 » Mon Dec 23, 2019 6:27 pm

That's right ;-)

But better it would be to have this function (this time commented yet)

Code: Select all

// bool AtWifi::wifiHttpService()
// {

// }
Claus Kuehnel - www.ckuehnel.ch

User avatar
salmanfarisvp
Elementary-1
Elementary-1
Posts: 177
Joined: Sun May 20, 2018 2:02 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Linklt One , BeagleBone Green , ReSpaker
Contact:

Re: WIO lite W600 HTTP POST

Post by salmanfarisvp » Mon Dec 30, 2019 12:14 am

Hi,

Did you use the AT-Commands?
Thank You :) .

info61
Pre-kindergarten
Pre-kindergarten
Posts: 9
Joined: Tue May 03, 2016 3:39 pm
Contact:

Re: WIO lite W600 HTTP POST

Post by info61 » Mon Dec 30, 2019 1:22 am

I would prefer to use the AtWiFi library.
But, AT commands I used with a SIM800 module.
Below is an update function which sends data to Thingspeak "GET https://xxx.xxx.xxx.xxx/update?xxxxxxx&field1=25.5". Is there a similar way to do this for WIO600 lite?

Code: Select all

void sendUpdate()
{
  if (DEBUG) Serial.println("Prepare Connection to Thingspeak...");
  SIM800_Serial.println("at+csq");
  delay(minZ);
  getResponse();
  SIM800_Serial.println("at+cipshut");
  delay(maxZ);
  getResponse();
  SIM800_Serial.println("at+cstt=\""+ APN +"\",\"\",\"\"");
  getResponse();
  SIM800_Serial.println("at+ciicr");//start wireless connection cellular network
  getResponse();
  SIM800_Serial.println("at+cifsr");//enquire regarding the IP address allocated
  getResponse();
  SIM800_Serial.println("at+cipstart=\"TCP\",\""+ URL +"\",\"80\"");  //connect to the ThingSpeak update URL (https://api.thingspeak.com)
  getResponse();
  SIM800_Serial.println("at+cipsend=80");//declare the number of bytes (characters) I want to send
  getResponse();
  SIM800_Serial.print("GET https://");    //this is a constant beginning for the GET command and is as provided by ThingSpeak
  SIM800_Serial.print(URL);
  SIM800_Serial.print("/update?");
  SIM800_Serial.print(APIKEY); //the channel API key provided by ThingSpeak
  getResponse();
  SIM800_Serial.print("&field1=");
  getResponse();
  SIM800_Serial.println(String(temp));//the value to post to field 
  getResponse();
  SIM800_Serial.println("at+cipack");//ask for acknowledge details
  getResponse();
  SIM800_Serial.println("at+cipclose");//close the IP connection
  getResponse();
}
Claus Kuehnel - www.ckuehnel.ch

Post Reply