File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 55
66#include " ArduinoCloudV2.h"
77
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 " ;
99
1010const static int keySlot = 0 ;
1111const static int compressedCertSlot = 10 ;
@@ -43,7 +43,7 @@ int ArduinoCloudClass::begin(Client& net)
4343 return 0 ;
4444 }
4545
46- ECCX08Cert.setSubjectCommonName (ECCX08. serialNumber () );
46+ ECCX08Cert.setSubjectCommonName (_id );
4747 ECCX08Cert.setIssuerCountryName (" US" );
4848 ECCX08Cert.setIssuerOrganizationName (" Arduino LLC US" );
4949 ECCX08Cert.setIssuerOrganizationalUnitName (" IT" );
@@ -87,7 +87,6 @@ int ArduinoCloudClass::connect()
8787 if (!_mqttClient.connect (_id.c_str ())) {
8888 return 0 ;
8989 }
90-
9190 _mqttClient.subscribe (_stdinTopic);
9291
9392 return 1 ;
You can’t perform that action at this time.
0 commit comments