Getting Started
Everything you need to go from a new Espoirnet account to your first device sending live telemetry.
1. Get your account
Section titled “1. Get your account”Espoirnet accounts are provisioned for you — there’s no self-serve signup. Contact us and we’ll set up your tenant account and add you as a user.
2. Sign in
Section titled “2. Sign in”Espoirnet uses passwordless sign-in — no passwords to manage. From the login page, click Sign in with Email and you’ll get a one-time code by email. Enter it and you’re in.
3. Create a project
Section titled “3. Create a project”Projects group your devices and sensors. From your dashboard, go to Projects → New Project and give it a name.
4. Add a device
Section titled “4. Add a device”Inside a project, go to Devices → New Device, give the device a name, then choose:
- Single sensor — the device itself acts as one sensor. Pick its sensor type (
telemetry,binary, orstate) and data direction (send,receive, orexchange) now — these can’t be changed later. - Multiple sensors — add sensors separately after creating the device.
See Device Provisioning for the full picture on sensor types and data direction.
5. Register the device’s key
Section titled “5. Register the device’s key”Devices authenticate with an EC (P-256) key pair. Only the public key ever reaches Espoirnet — your private key never leaves the device.
Generate a key pair with OpenSSL:
openssl ecparam -name prime256v1 -genkey -noout | openssl pkcs8 -topk8 -nocrypt -out private.pemopenssl ec -in private.pem -pubout -out public.pemOn the device’s page, open Register Key and paste in public.pem. If you’d rather skip the CLI, the same dialog has a Generate in Browser option that creates the key pair for you and shows you the private key once to save.
Full detail in Device Provisioning.
6. Connect and send your first reading
Section titled “6. Connect and send your first reading”Espoirnet has device SDKs for Node.js and for microcontrollers in C. This walkthrough uses the Node.js SDK and assumes the device you created in step 4 is a single-sensor telemetry device. Using an ESP32? Follow the Embedded C SDK guide from here instead.
Your code needs the keys of your account, project, device and sensor:
- Account, project and device keys: on the device’s page, the Connection strip has a copy button next to SDK config, which copies all three, ready to paste.
- Sensor key: a single-sensor device’s sensor is always
default. On a multi-sensor device, each sensor’s page shows its key, with a copy button. Keys are short and generated from the name, so a sensor called “Temperature” gets a key liketempe.
Connect and publish your first reading:
import { EspoirnetDevice } from '@espoirnet/device-sdk'
const device = new EspoirnetDevice({ // Paste from SDK config on the device's page accountId: 'your-account-key', projectId: 'your-project-key', deviceId: 'your-device-key', privateKeyPath: './private.pem', brokerUrl: 'mqtts://rayon.espoirnet.io:8883',})
device.on('error', (err) => console.error(err))
try { await device.connect()} catch (err) { // AuthError: bad or missing private key. ConnectionError / Error: broker unreachable. console.error('failed to connect:', err)}
device.publish('default', 21.5)That’s it — your first reading is on its way in. Open the sensor’s page in the console to see it.
Next steps
Section titled “Next steps”- Using the Console — dashboards, keys, and which pages update on their own.
- Device Provisioning — sensors, key rotation, and MQTT identity in full detail.
- Telemetry — batching multiple sensors in one publish, and querying data back out.
- Sending Commands — sending commands to a device and confirming they were applied.

