MWiFi and HTTP

MWiFi is based on a shield using MRF24WB0MA and MCW10001A controller from Microchip ©.

This library comes with HTTP library ( its derived class ).

MWiFi communicates with Arduino by 3 pins; two pins for SoftwareSerial and pin 7 for shield startup/reset. TX and RX pins are 3 and 2 at present (software defined). Moreover, shield has 4 LEDs, two of tem (0 and 1) used by library. MWiFi has basic functions for network connection (access point or ad-hoc), and for socket opening and management.

SoftwareSerial is a customized version and comes inside the library package.

Obviously, you can't use SoftwareSerial when you use MWiFi.

HTTP library, moreover, adds the http protocol management. Substantially, HTTP library has functions for managing http request and response.

MWiFi function groups:

  • startup (begin)
  • connect to net
  • open socket (server or client)
  • write to socket
  • read from socket
  • close socket
  • get/set configuration

HTTP function groups (added to MWiFi functions):

  • get/send request (server/client)
  • send/get response (server/client)
  • send dynamic response (made there and then)

N.B. Library policy, in case of connection loss, resets Arduino, at present. (Same policy in case of severe error)

Introduction

MWiFi Functions

HTTP Functions

MAIL

Examples

For other programs see example directory (there is also a WEB server )

Reference Home