Skip to content

changing namespace for timedAttempt to avoid conflicts with time() #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extras/test/src/time/test_TimedAttempt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <Arduino.h>
#include <limits.h>

using namespace arduino::time;
using namespace arduino::tattempt;

SCENARIO("Test broker connection retries") {
TimedAttempt _connection_attempt(0,0);
Expand Down
2 changes: 1 addition & 1 deletion src/Arduino_TimedAttempt.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

#include "./time/TimedAttempt.h"

using namespace arduino::time;
using namespace arduino::tattempt;
4 changes: 2 additions & 2 deletions src/time/TimedAttempt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <Arduino.h>
#include "TimedAttempt.h"

namespace arduino { namespace time {
namespace arduino { namespace tattempt {

TimedAttempt::TimedAttempt(unsigned long minDelay, unsigned long maxDelay)
: _minDelay(minDelay)
Expand Down Expand Up @@ -75,4 +75,4 @@ namespace arduino { namespace time {
return _retryDelay;
}

}} // arduino::time
}} // arduino::tattempt
4 changes: 2 additions & 2 deletions src/time/TimedAttempt.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#pragma once

namespace arduino { namespace time {
namespace arduino { namespace tattempt {

/**
* The TimedAttempt class manages retry attempts with configurable delays.
Expand Down Expand Up @@ -97,4 +97,4 @@ namespace arduino { namespace time {
unsigned int _retryCount;
};

}} // arduino::time
}} // arduino::tattempt
Loading