Go Down

Topic: Help! I cannot connect to our network. I am using Arduino Uno WiFi Rev2.  (Read 551 times) previous topic - next topic

gam7

Help!  I cannot connect to our network.  I am using Arduino Uno WiFi Rev2.

The network name is   eduroam

I have to enter a user name to login to the network.  Username is gaminib

Next I have to enter a password e.g.,  abcdef1234

I am using this code from examples, WifiNINA

Connectwith WPA

Code: [Select]


/*

 This example connects to an unencrypted Wifi network.
 Then it prints the  MAC address of the Wifi module,
 the IP address obtained, and other network details.

 created 13 July 2010
 by dlf (Metodo2 srl)
 modified 31 May 2012
 by Tom Igoe
 */
#include <SPI.h>
#include <WiFiNINA.h>

#include "arduino_secrets.h"
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
char ssid[] = SECRET_SSID;        // your network SSID (name)
char pass[] = SECRET_PASS;    // your network password (use for WPA, or use as key for WEP)
int status = WL_IDLE_STATUS;     // the Wifi radio's status

void setup() {
  //Initialize serial and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  // check for the WiFi module:
  if (WiFi.status() == WL_NO_MODULE) {
    Serial.println("Communication with WiFi module failed!");
    // don't continue
    while (true);
  }

…. Snip



In the secret tab  "arduino_secrets.h"  When I place

Code: [Select]

#define SECRET_SSID "eduroam"
#define SECRET_PASS "gaminib"


And upload to the board,

I get this in the serial monitor and nothing else happened. 
09:06:05.702 -> Attempting to connect to WPA SSID: eduroam
I entered  gaminib  in the send box of the serial monitor and nothing happened.

In the secret tab  "arduino_secrets.h" When I place

Code: [Select]

#define SECRET_SSID "gaminib"
#define SECRET_PASS "secretpassowrd1234"


And upload to the board,

I get this in the serial monitor and nothing else

09:10:29.499 -> Attempting to connect to WPA SSID: gaminib   

How do I connect to our network?

Thank you.

Juraj

the parameters in WiFi.begin are for joining a WiFi network.

I assume you enter the eduroam credentials on web page of a captive portal. this is happening on a TCP level, not on WiFi radio network level.

you should make a https request with eduroam credentials to the captive portal to sign in to eduroam network
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

gbafamily

ESP32 has support for eduroam but it is not available via WiFiNINA. eduroam uses WPA2 Enterprise.

https://github.com/martinius96/ESP32-Eduroam

gam7

the parameters in WiFi.begin are for joining a WiFi network.

I assume you enter the eduroam credentials on web page of a captive portal. this is happening on a TCP level, not on WiFi radio network level.

you should make a https request with eduroam credentials to the captive portal to sign in to eduroam network
Not sure how to do "you should make a https request with eduroam credentials to the captive portal to sign in to eduroam network" .

 I need to be logged in to eduroam with my laptop first and then run the example code WifiNINA, Connectwith WPA?


gam7

The solution is to have a dedicated network for the Arduino WiFi.  This not Not a "subset" of eduroam.  A dedicated network would have to be configured by the "IT department."

This is for commercial/educational applications of Arduino WiFi.  "Home networks" already have a dedicated network. 

Go Up