@@ -49,6 +49,9 @@ static uint16_t const DEFAULT_BROKER_PORT_SECURE_AUTH = 8883;
49
49
static char const DEFAULT_BROKER_ADDRESS_USER_PASS_AUTH[] = " mqtts-up.iot.arduino.cc" ;
50
50
static uint16_t const DEFAULT_BROKER_PORT_USER_PASS_AUTH = 8884 ;
51
51
52
+ static IPAddress const DEFAULT_BROKER_SECURE_AUTH_IP_1 (34 ,206 ,248 ,111 );
53
+ static IPAddress const DEFAULT_BROKER_SECURE_AUTH_IP_2 (3 ,209 ,5 ,114 );
54
+
52
55
/* *****************************************************************************
53
56
* CLASS DECLARATION
54
57
******************************************************************************/
@@ -70,7 +73,9 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
70
73
#else
71
74
int begin (ConnectionHandler & connection, String brokerAddress = DEFAULT_BROKER_ADDRESS_USER_PASS_AUTH, uint16_t brokerPort = DEFAULT_BROKER_PORT_USER_PASS_AUTH);
72
75
#endif
73
- int begin (String brokerAddress = DEFAULT_BROKER_ADDRESS_SECURE_AUTH, uint16_t brokerPort = DEFAULT_BROKER_PORT_SECURE_AUTH);
76
+ int begin (ConnectionHandler & connection, IPAddress const brokerIp, uint16_t const brokerPort = DEFAULT_BROKER_PORT_SECURE_AUTH);
77
+ int begin (ConnectionHandler & connection, uint16_t brokerPort);
78
+
74
79
75
80
#ifdef BOARD_ESP
76
81
inline void setBoardId (String const device_id) { setDeviceId (device_id); }
@@ -101,6 +106,7 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
101
106
102
107
int _lastSyncRequestTickTime;
103
108
String _brokerAddress;
109
+ IPAddress _brokerIp;
104
110
uint16_t _brokerPort;
105
111
uint8_t _mqtt_data_buf[MQTT_TRANSMIT_BUFFER_SIZE];
106
112
int _mqtt_data_len;
0 commit comments