I couldn’t initialize my WizFi module after connecting through Arduino Uno.
#include <WizFi360.h>
#include <WizFi360Server.h>
#ifndef HAVE_HWSERIAL1
#include “SoftwareSerial.h”
SoftwareSerial Serial1(0,1); // RX, TX
#endif
/* Baudrate */
//#define SERIAL_BAUDRATE 115200
//#define SERIAL1_BAUDRATE 115200
/* Wi-Fi info /
char ssid[] = “WizFi_Server”; // your network SSID (name)
char pass[] = "***"; // your network password
int status = WL_IDLE_STATUS; // the Wifi radio’s status
WiFiServer server(5000);
void setup()
{
// initialize serial for debugging
Serial.begin(115200);
// initialize serial for WizFi360 module
Serial1.begin(115200);
// initialize WizFi360 module
WiFi.init(&Serial1);
WiFi.beginAP(ssid, pass);
// attempt to connect to WiFi network
while (status != WL_CONNECTED) {
Serial.print("Attempting to connect to WPA SSID: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network
status=WiFi.begin(ssid, pass);
}
Serial.println(“You’re connected to the network”);
printWifiStatus();
// start the web server on port 5000
server.begin();
}
void loop()
{ // listen for incoming clients
WiFiClient client = server.available();
if (client) {
Serial.println(“New client”);
while (client.connected()) {
if (client.available()) {
char c = client.read();
Serial.write(c);
}
client.stop();
Serial.println("Client disconnected");
}
}
}
void printWifiStatus()
{
// print the SSID of the network you’re attached to
Serial.print("SSID: ");
Serial.println(WiFi.SSID());
// print your WiFi shield’s IP address
IPAddress ip = WiFi.localIP();
Serial.print("IP Address: ");
Serial.println(ip);
}
I’m getting as:
[WizFi360] Initializing WizFi360 module
[WizFi360] >>> TIMEOUT >>>
[WizFi360] >>> TIMEOUT >>>
[WizFi360] >>> TIMEOUT >>>
[WizFi360] >>> TIMEOUT >>>
[WizFi360] >>> TIMEOUT >>>
[WizFi360] Cannot initialize WizFi360 module
[WizFi360] >>> TIMEOUT >>>
[WizFi360] Failed to set AP mode WizFi_Server
Attempting to connect to WPA SSID: WizFi_Server
[WizFi360] >>> TIMEOUT >>>
[WizFi360] Failed connecting to WizFi_Server
can I know how to pair two modules through Arduino Uno board using the SSID and Password in code.