File tree 2 files changed +5
-5
lines changed
samples/greengrass/basic_discovery
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -124,12 +124,12 @@ namespace Aws
124
124
DiscoverResponse response (jsonObject.View ());
125
125
onDiscoverResponse (&response, AWS_ERROR_SUCCESS, callbackContext->responseCode );
126
126
}
127
- else if (errorCode)
128
- {
129
- onDiscoverResponse (nullptr , errorCode, callbackContext->responseCode );
130
- }
131
127
else
132
128
{
129
+ if (!errorCode)
130
+ {
131
+ errorCode = AWS_ERROR_UNKNOWN;
132
+ }
133
133
onDiscoverResponse (nullptr , errorCode, callbackContext->responseCode );
134
134
}
135
135
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ int main(int argc, char *argv[])
189
189
190
190
connection = mqttClient.NewConnection (
191
191
Aws::Iot::MqttClientConnectionConfigBuilder (certificatePath.c_str (), keyPath.c_str ())
192
- .WithCertificateAuthority (groupToUse.CAs ->at (0 ).c_str ())
192
+ .WithCertificateAuthority (ByteCursorFromCString ( groupToUse.CAs ->at (0 ).c_str () ))
193
193
.WithPortOverride (connectivityInfo.Port .value ())
194
194
.WithEndpoint (connectivityInfo.HostAddress .value ())
195
195
.Build ());
You can’t perform that action at this time.
0 commit comments