File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
#include " ArduinoCloudV2.h"
7
7
8
- const static char server[] = " a19g5nbe27wn47.iot.us-east-1.amazonaws.com " ; // "xxxxxxxxxxxxxx. iot.xx-xxxx-x.amazonaws.com ";
8
+ const static char server[] = " mqtts-sa. iot.oniudra.cc " ;
9
9
10
10
const static int keySlot = 0 ;
11
11
const static int compressedCertSlot = 10 ;
@@ -43,7 +43,7 @@ int ArduinoCloudClass::begin(Client& net)
43
43
return 0 ;
44
44
}
45
45
46
- ECCX08Cert.setSubjectCommonName (ECCX08. serialNumber () );
46
+ ECCX08Cert.setSubjectCommonName (_id );
47
47
ECCX08Cert.setIssuerCountryName (" US" );
48
48
ECCX08Cert.setIssuerOrganizationName (" Arduino LLC US" );
49
49
ECCX08Cert.setIssuerOrganizationalUnitName (" IT" );
@@ -87,7 +87,6 @@ int ArduinoCloudClass::connect()
87
87
if (!_mqttClient.connect (_id.c_str ())) {
88
88
return 0 ;
89
89
}
90
-
91
90
_mqttClient.subscribe (_stdinTopic);
92
91
93
92
return 1 ;
You can’t perform that action at this time.
0 commit comments