Fatal error when creating new MqttClient
See original GitHub issueTrying to do an extremely basic demo… thing
is created using other calls, and then…
const configBuilder = iotsdk.iot.AwsIotMqttConnectionConfigBuilder.new_mtls_builder(
thing.certificatePem,
thing.certificateKeyPair.PrivateKey
)
configBuilder.with_client_id(thing.thingName);
configBuilder.with_endpoint(thing.iotDataEndpoint)
const config = configBuilder.build();
const client = new iotsdk.mqtt.MqttClient();
const connection = client.new_connection(config);
Error:
/iotErrorProject/node_modules/aws-crt/dist/native/mqtt.js:61
super(binding_1.default.mqtt_client_new(bootstrap.native_handle()));
I don’t see how this demo ever works, since bootstrap is not defined? https://github.com/aws/aws-iot-device-sdk-js-v2/blob/916eb692de7f6df9368324b34be71f67304c636c/samples/util/cli_args.js#L198
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Upon running a C++ script with AWS IoT Core, I get a fatal ...
Upon running a C++ script with AWS IoT Core, I get a fatal error. I am relatively new to C++ and IoT Core...
Read more >How to fix this ? fatal error: 'MQTTClient/MQTTClient.h' file not ...
A community for learning and developing native mobile applications ... on Garuda I get an error saying it couldn't apply the transaction.
Read more >MQTT Client Support - mangOH Green
I have pushed a new branch to https://github.com/mangOH/MqttClient named use_paho_linux_version. This branch implements a Legato app ...
Read more >GVM 22.4.0 documentation not ready?
Configuring done -- Generating done -- Build files have been written to: ... fatal error: MQTTClient.h: No such file or directory 28 ......
Read more >Solved: PSoC 6 MQTT-client template fails build. Mutlipe n...
Solved: I am trying to use the MQTT-client template but it gives me multiple errors when i build without even making any changes....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We recently updated the samples and CRT to not require the bootstrap, but we haven’t done a new release of the SDK yet so essentially the SDK samples are a little bit ahead of the pinned API. We’re planning to do a release soon with a lot of documentation improvements and updates so everything will be in sync then. In the meantime, just use the sample code from the latest release rather than what’s at the head of main.
No worries, thanks for your quick response!