Silly question, how do you restore a deleted device?

I deleted one of my devices just to see what would happen. Now for the life of me I can’t figure out how I add it back to the project?

Now I just get {“result”:503,“body”:{“err”:"hub request error: {device-noexist}:

When my device makes request.

I’m sure I am missing something really obvious… but it’s Friday afternoon sooo

Thank you!

Alan

If the Notecard is configured with the Product UID for that Notehub project, it just needs to reconnect to the Notehub, and it’ll automatically reappear in the Notehub project.

You can also use the Notehub API to add a device manually to a Notehub project. Device API - Notehub API Reference - Blues Developers

This is more to support “provisioning” workflows, where users may need the ability to assign certain characteristics to a specific device prior to it’s first connection to Notehub. But it may satisfy your needs in this case.

3 Likes

Transpires it was as bug in my code that wasn’t calling the hub.set command again! I’d obviously done it at one point properly :slight_smile:

Thank you. I blame Fridays :slight_smile: