https://toitlang.org/ logo
Getting device id?
# help
a
Is there a way to get the current device's ID, without manually setting it?
f
I'm pretty sure there is. Give me a second to check.
Hmm. I'm not sure if the ID isn't Jaguar or Artemis specific.
Which platform do you use?
I don't see an easy way for Jaguar, but Artemis has the
artemis
package which exposes it.
After installing the package it's just:
Copy code
import artemis

main:
  print artemis.device.d
(Untested).
a
Ah perfect, yeah using artemis. I’ll take a look. Thanks!