header file keywords
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Wireless
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: header file keywords
by austin ·
Hi @Sushma_N_S
Please refer to the link below.
RE: RE: header file keywords
by Sushma N S ·
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”);
}
}
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.
RE: header file keywords
by austin ·
Hi @Sushma_N_S
It seems that timeout occurs because the connection between Arduino UNO and WizFi360 is not normal.
Please check the connection between Arduino UNO and WizFi360.
Due to compatibility between Arduino UNO and WizFi360, it is recommended to use 9,600 baudrate instead of 115,200.