Update GPS data retrieval to use fake GPS readings for testing
This commit is contained in:
@@ -10,3 +10,4 @@ struct GPSData_t
|
|||||||
|
|
||||||
void GPS_Init();
|
void GPS_Init();
|
||||||
GPSData_t GPS_Read();
|
GPSData_t GPS_Read();
|
||||||
|
GPSData_t GPS_Read_Fake();
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <PubSubClient.h>
|
#include <PubSubClient.h>
|
||||||
|
|
||||||
#define SSID "DIGIFIBRA-D2ys"
|
#define SSID "iPhone de Álvaro"
|
||||||
#define WIFI_PASSWORD "4EEATsyTcZ"
|
#define WIFI_PASSWORD "alvarito123"
|
||||||
|
|
||||||
int setupWifi();
|
int setupWifi();
|
||||||
@@ -25,3 +25,9 @@ GPSData_t GPS_Read()
|
|||||||
|
|
||||||
return {lat, lon};
|
return {lat, lon};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GPSData_t GPS_Read_Fake()
|
||||||
|
{
|
||||||
|
float rnd = random(-0.005, 0.005);
|
||||||
|
return {37.358201f + rnd, -5.986640f + rnd};
|
||||||
|
}
|
||||||
@@ -105,7 +105,7 @@ void readBME280()
|
|||||||
|
|
||||||
void readGPS()
|
void readGPS()
|
||||||
{
|
{
|
||||||
gpsData = GPS_Read();
|
gpsData = GPS_Read_Fake();
|
||||||
}
|
}
|
||||||
|
|
||||||
void writeMatrix(const char *message)
|
void writeMatrix(const char *message)
|
||||||
|
|||||||
Reference in New Issue
Block a user