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 {
4343 ArduinoIoTConnectionStatus connectionCheck ();
4444 int begin (ConnectionHandler& connection, bool retry = false );
4545
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; }
4949
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; }
5353
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- }
6954
7055 private:
7156
Original file line number Diff line number Diff line change @@ -70,20 +70,12 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass {
7070 static const int MQTT_TRANSMIT_BUFFER_SIZE = 256 ;
7171
7272 #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; }
7975 #endif
8076
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; }
8779
8880 // Clean up existing Mqtt connection, create a new one and initialize it
8981 int reconnect ();
You can’t perform that action at this time.
0 commit comments