Loading...
Notecard Disconnected
Having trouble connecting?

Try changing your USB cable as some cables do not support transferring data. If that does not solve your problem, contact us at support@blues.com and we will get you set up with another tool to communicate with the Notecard.

Advanced Usage

The help command gives more info.

Connect a Notecard
Use USB to connect and start issuing requests from the browser.
Try Notecard Simulator
Experiment with the Notecard's API on a Simulator assigned to your free Notehub account.

Don't have an account? Sign up

Introducing Notecard for Skylo - Cellular, WiFi, and Satellite in One Board

Blues Developers
What’s New
Resources
Blog
Technical articles for developers
Connected Product Guidebook
In-depth guides for connected product development
Developer Certification
Get certified on wireless connectivity with Blues
Newsletter
The monthly Blues developer newsletter
Terminal
Connect to a Notecard in your browser
Webinars
Listing of Blues technical webinars
Blues.comNotehub.io
Shop
Docs
Button IconHelp
Support DocsNotehub StatusVisit our Forum
Button IconSign In
What’s New
Resources
Blog
Technical articles for developers
Connected Product Guidebook
In-depth guides for connected product development
Developer Certification
Get certified on wireless connectivity with Blues
Newsletter
The monthly Blues developer newsletter
Terminal
Connect to a Notecard in your browser
Webinars
Listing of Blues technical webinars
Blues.comNotehub.io
Shop
Docs
homechevron_rightBlogchevron_rightTips & Tricks for Managing Devices in Notehub

Tips & Tricks for Managing Devices in Notehub

Tips & Tricks for Managing Devices in Notehub banner

April 14, 2026

Learn tips to help organize and manage devices in Notehub as your projects start to scale

  • Notehub
TJ VanToll
TJ VanTollPrincipal Developer Advocate
email

In this post I want to highlight a few Notehub tips & tricks that I’ve found useful as I’ve built projects that start to scale beyond a few devices.

I made this list intentionally skimmable so you can quickly scan for features that might help your own projects and workflows.

Assign Serial Numbers

Each Notecard has a factory-assigned, globally unique identifier known as a DeviceUID. Notehub uses this identifier in the Devices view by default, giving each device a label like dev:868531061604976.

List of devices in Notehub with DeviceUIDs

That's fine for a handful of devices, but as your project scales, long identifiers become harder to read in the Devices list. Assigning a serial number to each device to use a human-readable name can help considerably.

List of devices in Notehub with serial numbers

note

Another common use of the serial number is to associate each Notecard with an identifier from your own internal system, such as a SKU, asset tag, or a database ID.

There are three ways to assign a serial number.

In the Notehub UI: Double-click any device in the Devices view to open its details, then edit the Serial Number field directly.

Editing a serial number in Notehub

Via the Notecard API: Include an sn argument in the hub.set request you use to configure your Notecard.

{
  "req": "hub.set",
  "product": "com.your-company.your-name:your-project",
  "sn": "Outside"
}

Via the Notehub API: Set the reserved _sn environment variable using the Set Device Environment Variables endpoint. This is useful when you want to assign or update serial numbers programmatically from your backend without involving the device's firmware.

curl -X PUT \
  'https://api.notefile.net/v1/projects/<projectUID>/devices/<deviceUID>/environment_variables' \
  -H 'Authorization: Bearer <access_token>' \
  -d '{"environment_variables": {"_sn": "Outside"}}'
tip

Once a serial number is set, you can use it in place of a DeviceUID in Notehub API calls by prefixing it with sn:. For example, rather than using /v1/projects/{projectUID}/devices/dev:868531061604976, you can use /v1/projects/{projectUID}/devices/sn:Outside.

Organize With Fleets

Fleets are Notehub's primary tool for grouping and managing devices. Every project starts with a default All Devices fleet, but you can create additional fleets to organize devices however makes sense for your project—by location, device type, customer, hardware revision, or any other criteria you choose.

Creating Fleets and Adding Devices

To create a fleet in Notehub, navigate to your project and click the Fleets item in the sidebar, then click Create Fleet and give it a name.

Creating a fleet

Once a fleet exists, you can add devices to it by opening a device's detail view and selecting the fleet from the Fleets section.

Assigning a device to a fleet

You can also add devices to fleets programmatically using the Add Device to Fleets endpoint in the Notehub API, which can useful if you want to perform fleet assignments in dashboards, or as part of automated workflows.

Once your devices are in fleets, there are a number of useful things you can do. Here are three examples.

tip

If you’d rather not assign devices to fleets manually, you can add Smart Fleets Rules to your fleet. When enabled, smart fleet rules automatically add or remove devices from fleets based on their data.

Example 1: Use Fleet-Level Environment Variables

Fleet-level environment variables are one of the most powerful tools available once your devices are grouped.

Environment variables are key-value pairs that propagate from Notehub to your devices automatically on their next sync. When you set an environment variable on a fleet, every device in that fleet receives it, with no firmware changes needed.

To set a fleet environment variable, navigate to your fleet's Settings tab and look for the Environment Variables section.

Setting fleet environment variables

As a concrete example, suppose you build and sell temperature monitoring devices to multiple customers. Customer A monitors food storage and wants to be alerted when temperatures exceed 40°F. Customer B monitors a server room and wants alerts above 80°F. Rather than managing separate firmware builds for each customer, you can give each customer their own fleet, and set a alert_temp environment variable on each fleet to the appropriate value.

Your firmware reads alert_temp on startup and uses it to determine when to fire an alert, with no firmware changes needed when either customer wants a different threshold.

note

You can also set fleet environment variables through the Notehub API's Set Fleet Environment Variables request if you want to automate this as part of a larger workflow.

Example 2: Stage Firmware Updates

Fleets also give you a natural way to stage firmware updates before rolling them out to your entire deployment. Here’s a common workflow you can use:

  1. Create a beta fleet. Give it a name like "Beta" or "Staging"—something that makes its purpose clear to anyone on your team.

  2. Add a small number of devices to the fleet. Ideally devices you can access directly, such as test devices in your office.

  3. Deploy new firmware to the beta fleet first. Notehub's user interface and Perform DFU Action APIs both allow you to scope firmware updates to a single fleet.

  4. Monitor and verify. Once the update rolls out to your beta devices, check that everything is behaving as expected before proceeding.

  5. Promote the update to your broader fleet. Once you're confident the firmware is solid, push the update to the rest of your devices.

This approach helps you catch firmware problems early on testing devices, before deploying the changes broadly.

Example 3: Monitor for Inactive Devices

Notehub's watchdog events lets you get notified when a device hasn't been heard from in a set period of time. To enable the feature open a fleet's Settings, find the Watchdog section, and set an interval as shown below.

Setting watchdog events on Notehub fleets

Once enabled, Notehub fires a _watchdog.qo event for any device in the fleet that doesn't connect within the configured interval. You can then route those events to trigger an alert, such as an email, a Slack message, or whatever makes sense for your project.

Use Tags

Tags are a lighter-weight way to organize devices in Notehub. Where fleets are full management constructs—complete with their own environment variables, watchdog settings, and smart-fleet rules—tags are simple labels you can attach to one or more devices for quick filtering and searching.

You can assign tags to a device in the Notehub UI by opening its detail view and editing the Tags field. To assign multiple tags to one device, use a comma-separated list.

Device tags in Notehub

Tags can also be set programmatically. Under the hood, Notehub stores tags as the _tag reserved environment variable. You can set this variable using the Set Device Environment Variables endpoint:

curl -X PUT \
  'https://api.notefile.net/v1/projects/<projectUID>/devices/<deviceUID>/environment_variables' \
  -H 'Authorization: Bearer <access_token>' \
  -d '{"environment_variables": {"_tag": "outdoor,battery-powered"}}'

Once tags are applied, you can filter the Devices view by tag to quickly find what you're looking for, without needing to set up a dedicated fleet.

A device tag filter in Notehub

Save Favorite Filters

Notehub offers many ways to filter both Devices and Events, including filtering by DeviceUID, fleets, tags, location, firmware version, and more.

If you find a filter you like using, you can save it as a Favorite using the Star icon that appears on the right-hand side of the search box.

Saving favorite filters

Once favorited, saved filters appear in your Notehub project’s Favorites section, allowing you to view the filtered list in one click.

Viewing favorite filters

Wrapping Up

I hope this post gives you some ideas for making life a little easier as your deployment scales up. If you have questions, feel free to get in touch on our developer forum.

In This Article

  • Assign Serial Numbers
  • Organize With Fleets
    • Creating Fleets and Adding Devices
    • Example 1: Use Fleet-Level Environment Variables
    • Example 2: Stage Firmware Updates
    • Example 3: Monitor for Inactive Devices
  • Use Tags
  • Save Favorite Filters
  • Wrapping Up

Blues Developer News

The latest IoT news for developers, delivered right to your inbox.

Comments

Join the conversation for this article on our Community Forum

Blues Developer Newsletter

The latest IoT news for developers, delivered right to your inbox.

© 2026 Blues Inc.
© 2026 Blues Inc.
TermsPrivacy