Skip to content

Commit

Permalink
chore: Switch LPWAN off deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
zfields committed Mar 5, 2024
1 parent cf66030 commit 2e25471
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ArduinoIoTCloudLPWAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ArduinoIoTCloudLPWAN::ArduinoIoTCloudLPWAN()

int ArduinoIoTCloudLPWAN::connected()
{
return (_connection->getStatus() == NetworkConnectionState::CONNECTED) ? 1 : 0;
return (_connection->check() == NetworkConnectionState::CONNECTED) ? 1 : 0;
}

int ArduinoIoTCloudLPWAN::begin(ConnectionHandler& connection, bool retry)
Expand Down
2 changes: 1 addition & 1 deletion src/property/PropertyContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void requestUpdateForAllProperties(PropertyContainer & prop_cont)

void updateTimestampOnLocallyChangedProperties(PropertyContainer & prop_cont)
{
/* This function updates the timestamps on the primitive properties
/* This function updates the timestamps on the primitive properties
* that have been modified locally since last cloud synchronization
*/
std::for_each(prop_cont.begin(),
Expand Down

0 comments on commit 2e25471

Please sign in to comment.