
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
sensor.live-things-registry
Advanced tools
This document will help your device connect to AWS IoT quickly. Mainly to speed up the process of certificate exchanging complied to AWS IoT authentication.
Environment
Packages
sensor.live
npm install sensor.live-things-registry
const aws_iot = require('aws-iot-device-sdk');
const thing_registry = require('sensor.live-things-registry');
const config = {
aws_iot: {
endpoint: 'your aws iot endpoint',
port: '8883', // 8883 or 1883 is default supported with AWS IoT,
debug: false
}
}
thing_registry.setCertsPath('./certs'); // you can change the default certificates folder
if (!thing_registry.hasDeviceCertificate()) {
thing_registry.generateDeviceCertificate({
thing_name: '<YourDeviceUniqueName>'
});
}
let thing_name = thing_registry.getThingName();
let keys_path = thing_registry.getKeysPath();
let client_id = `device-${thing_name}`
let thing_shadow = aws_iot.thingShadow({
...keys_path,
host: config.aws_iot.endpoint,
port: config.aws_iot.port,
debug: config.aws_iot.debug,
clientId: client_id
});
Default options:
options = {
thing_name = null,
country_name = 'TW',
state_name = 'Taipei',
locality_name = 'Nangang',
organization_name = 'SoftChef',
organization_unit_name = 'IT'
}
You can customize the thing name, please ensure the thing name is given uniquely.
The naming rule is based on AWS IoT requirement: Must contain only alphanumeric characters and/or the following: -_:
If your thing_name is null, alternatively, the thing name will generate from the device certificate.
Get the thing name. Your customized name or from the device certificate.
Return the keys path, properties follow AWS IoT connection options.
Change the default certificate files directory.
Change the default CA certificate file name.
Change the default CA private key file name.
Change the default RootCA certificate file name.
Change the default device certificate request file name.
Change the default device certificate file name.
Change the default device public key file name.
Change the default device private key file name.
This SDK is distributed under the GNU GENERAL PUBLIC LICENSE Version 3, see LICENSE for more information.
If you have technical questions about sensor.live-things-registry, contact sensor.live support poke@sensor.live.
FAQs
## Overview
We found that sensor.live-things-registry demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.