File tree Expand file tree Collapse file tree 2 files changed +10
-33
lines changed Expand file tree Collapse file tree 2 files changed +10
-33
lines changed Original file line number Diff line number Diff line change @@ -43,29 +43,14 @@ class ArduinoIoTCloudLPWAN : public ArduinoIoTCloudClass {
43
43
ArduinoIoTConnectionStatus connectionCheck ();
44
44
int begin (ConnectionHandler& connection, bool retry = false );
45
45
46
- bool isRetryEnabled () {
47
- return _retryEnable;
48
- }
46
+ inline bool isRetryEnabled () const { return _retryEnable; }
47
+ inline int getMaxRetry () const { return _maxNumRetry; }
48
+ inline long getIntervalRetry () const { return _intervalRetry; }
49
49
50
- void enableRetry (bool val) {
51
- _retryEnable = val;
52
- }
50
+ inline void enableRetry (bool val) { _retryEnable = val; }
51
+ inline void setMaxRetry ( int val) { _maxNumRetry = val; }
52
+ inline void setIntervalRetry ( long val) { _intervalRetry = val; }
53
53
54
- int getMaxRetry () {
55
- return _maxNumRetry;
56
- }
57
-
58
- void setMaxRetry (int val) {
59
- _maxNumRetry = val;
60
- }
61
-
62
- long getIntervalRetry () {
63
- return _intervalRetry;
64
- }
65
-
66
- void setIntervalRetry (long val) {
67
- _intervalRetry = val;
68
- }
69
54
70
55
private:
71
56
Original file line number Diff line number Diff line change @@ -70,20 +70,12 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass {
70
70
static const int MQTT_TRANSMIT_BUFFER_SIZE = 256 ;
71
71
72
72
#ifdef BOARD_ESP
73
- inline void setBoardId (String const device_id) {
74
- setDeviveId (device_id);
75
- }
76
- inline void setSecretDeviceKey (String const password) {
77
- _password = password;
78
- }
73
+ inline void setBoardId (String const device_id) { setDeviveId (device_id); }
74
+ inline void setSecretDeviceKey (String const password) { _password = password; }
79
75
#endif
80
76
81
- String getBrokerAddress () {
82
- return _brokerAddress;
83
- }
84
- uint16_t getBrokerPort () {
85
- return _brokerPort;
86
- }
77
+ inline String getBrokerAddress () const { return _brokerAddress; }
78
+ inline uint16_t getBrokerPort () const { return _brokerPort; }
87
79
88
80
// Clean up existing Mqtt connection, create a new one and initialize it
89
81
int reconnect ();
You can’t perform that action at this time.
0 commit comments