Skip to content

Commit 3c21531

Browse files
committed
Turning public constant MQTT_TRANSMIT_BUFFER_SIZE into private constant since there is no need for the constant to be public
1 parent a4acad9 commit 3c21531

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArduinoIoTCloudTCP.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass {
6464
int begin(ConnectionHandler & connection, String brokerAddress = DEFAULT_BROKER_ADDRESS_USER_PASS_AUTH, uint16_t brokerPort = DEFAULT_BROKER_PORT_USER_PASS_AUTH);
6565
#endif
6666
int begin(String brokerAddress = DEFAULT_BROKER_ADDRESS_SECURE_AUTH, uint16_t brokerPort = DEFAULT_BROKER_PORT_SECURE_AUTH);
67-
// Class constant declaration
68-
static const int MQTT_TRANSMIT_BUFFER_SIZE = 256;
6967

7068
#ifdef BOARD_ESP
7169
inline void setBoardId (String const device_id) { setDeviveId(device_id); }
@@ -81,6 +79,8 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass {
8179
friend class CloudSerialClass;
8280

8381
private:
82+
static const int MQTT_TRANSMIT_BUFFER_SIZE = 256;
83+
8484
int _lastSyncRequestTickTime;
8585
String _brokerAddress;
8686
uint16_t _brokerPort;

0 commit comments

Comments
 (0)