Hello there,
I am having trouble connecting my esp32 thing to WIFI it will not work with any router or even the hot spot on my phone.
if I open the serial port in Auruino ide it get stuck on wifi conecting …
I have run the wifi scanner code it picks up the networks in the area.
The code being implemented is the (Example14_NTRIPServer)
#include <WiFi.h>
#include “secrets.h”
WiFiClient ntripCaster;
#include <Wire.h>
#include <SparkFun_u-blox_GNSS_Arduino_Library.h> //http://librarymanager/All#SparkFun_u-blox_GNSS
SFE_UBLOX_GNSS myGNSS;
//Global Variables
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
long lastSentRTCM_ms = 0; //Time of last data pushed to socket
int maxTimeBeforeHangup_ms = 10000; //If we fail to get a complete RTCM frame after 10s, then disconnect from caster
uint32_t serverBytesSent = 0; //Just a running total
long lastReport_ms = 0; //Time of last report of bytes sent
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
void setup()
{
Serial.begin(115200); // You may need to increase this for high navigation rates!
while (!Serial)
; //Wait for user to open terminal
Serial.println(F(“SparkFun u-blox Example”));
Wire.begin();
//myGNSS.enableDebugging(); // Uncomment this line to enable debug messages
if (myGNSS.begin() == false) //Connect to the u-blox module using Wire port
{
Serial.println(F(“u-blox GNSS not detected at default I2C address. Please check wiring. Freezing.”));
while (1)
;
}
Serial.print(“Connecting to local WiFi”);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(“.”);
}
Serial.print("\nWiFi connected with IP: ");
Serial.println(WiFi.localIP());
Serial.print("\nWiFi connected with IP: ");
Serial.println(WiFi.localIP());
(secrets.h) Folder is as follows
//Your WiFi credentials
const char *ssid = “Anthony’s iPhone”;
const char *password = “test”;
//RTK2Go works well and is free
const char casterHost = “caster.emlid.com”;
const uint16_t casterPort = 2101;
const char mountPoint = “XXXXXX”; //The mount point you want to push data to
const char mountPointPW = “XXXXXX”;
Is something missing ?
Thank You!
Sixthsantos