Skip to content

Arduino library for the Sodaq_WifiBee

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

GabrielNotman/Sodaq_WifiBee

Repository files navigation

SODAQ WifiBee

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.

Length Limitations

  • Host + Port(digits): Limited to a combined maximum of 234 characters.
  • SSID + Password: Limited to a combined maximum of 233 characters.

Power Management

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.

HTTP Methods

  HTTPGet()
  HTTPPost()
  HTTPPut()

TCP Methods

openTCP()
sendTCPAscii()
sendTCPBinary()
closeTCP()

UDP Methods

openUDP()
sendUDPAscii()
sendUDPBinary()
closeTCP()

Methods for Reading the Response

readHTTPResponse()
readResponseAscii()
readResponseBinary()

Example Initialisation

  Sodaq_WifiBee wifiBee;
  
  wifiBee.init(Serial1, VCCPin, DTRPin, CTSPin, 256);
  wifiBee.connectionSettings(WIFI_SSID, "", WIFI_PASSWORD);

Example Usage

  //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.

About

Arduino library for the Sodaq_WifiBee

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published