Data Sheet

#include <SoftwareSerial.h>
#include <Wire.h>
MeWifi Wifi(PORT_4);
void setup()
{
Serial.begin(9600);
Wifi.begin(9600);
Serial.println("Bluetooth Start!");
}
void loop()
{
char inDat;
char outDat;
if(Wifi.available())
{
char c = Wifi.read();
Serial.print(c);
}
if(Serial.available())
{
outDat = Serial.read();
Wifi.write(outDat);
}
}
Open the Arduino serial port to realize Wi-Fi passthrough, hence to receive and send
data.
In STA mode, the Wi-Fi module needs to be mounted to a nearby router (as shown
in Diagram 3). After successful connection of the Wi-Fi module and the router, the
router will assign IP address automatically. (Check the IP address in STA SSID from
Wi-Fi Setup page as shown in Diagram 1)