This is the Arduino library for the SODAQ WifiBee.
It is designed to be used as a client for synchronous request response communication.
It does not support or handle any unsolicited incoming data/requests.
- Host + Port(digits): Limited to a combined maximum of 234 characters.
- SSID + Password: Limited to a combined maximum of 233 characters.
It uses the hardware power switch (Bee DTR pin) to leave the device powered down when not in use.
It supports general HTTP requests as well as TCP and UDP connections.
HTTPGet()
HTTPPost()
HTTPPut()
openTCP()
sendTCPAscii()
sendTCPBinary()
closeTCP()
openUDP()
sendUDPAscii()
sendUDPBinary()
closeTCP()
readHTTPResponse()
readResponseAscii()
readResponseBinary()
Sodaq_WifiBee wifiBee;
wifiBee.init(Serial1, VCCPin, DTRPin, CTSPin, 256);
wifiBee.connectionSettings(WIFI_SSID, "", WIFI_PASSWORD);
//Send request
uint16_t code = 0;
wifiBee.HTTPGet("www.google.com", 80, "/", "", code);
Serial.println("Result code: " + String(code));
//Read back and display the response
char buffer[512];
size_t bytesRead;
wifiBee.readResponseAscii(buffer, sizeof(buffer), bytesRead);
Serial.println("Response:");
Serial.println(buffer);
The documentation for the library class can be found at: <Todo: Add documentation URL>.
Copyright (c) 2015 Gabriel Notman & M2M4ALL BV. All rights reserved.