Skip to content

Commit

Permalink
Rename Location to CellularLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Apr 29, 2024
1 parent 6531063 commit d1346aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/ArduinoCellular.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ bool ArduinoCellular::connect(String apn, String username, String password){
}


Location ArduinoCellular::getGPSLocation(unsigned long timeout){
CellularLocation ArduinoCellular::getGPSLocation(unsigned long timeout){
if (model == ModemModel::EG25){
float latitude = 0.00000;
float longitude = 0.00000;
Expand All @@ -98,7 +98,7 @@ Location ArduinoCellular::getGPSLocation(unsigned long timeout){
delay(1000);
}

Location loc;
CellularLocation loc;
loc.latitude = latitude;
loc.longitude = longitude;

Expand All @@ -107,7 +107,7 @@ Location ArduinoCellular::getGPSLocation(unsigned long timeout){
if(this->debugStream != nullptr){
this->debugStream->println("Unsupported modem model");
}
return Location();
return CellularLocation();
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/ArduinoCellular.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class SMS {
* @struct Location
* @brief Represents a geographic location with latitude and longitude coordinates.
*/
struct Location {
struct CellularLocation {
float latitude; /**< The latitude coordinate of the location. */
float longitude; /**< The longitude coordinate of the location. */
};
Expand Down Expand Up @@ -136,7 +136,7 @@ class ArduinoCellular {
* @param timeout The timeout (In milliseconds) to wait for the GPS location.
* @return The GPS location. If the location is not retrieved, the latitude and longitude will be 0.0.
*/
Location getGPSLocation(unsigned long timeout = 60000);
CellularLocation getGPSLocation(unsigned long timeout = 60000);

/**
* @brief Gets the current time from the network.
Expand Down

0 comments on commit d1346aa

Please # to comment.