0

Unique names for devices
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Unique names for devices

by DaveAZ on Tue Apr 24, 2018 4:23 pm

I'm in the process of setting up a few 8266WiFi boards to measure temp and humidity in a few places inside my house and I want to upload the measurements to Adafruit.IO I've gotten the code to work properly on one board but now I want to have a single code file that I can upload to each board that causes each one to upload to a different feed on Adafruit.IO

The only technique I can think of at the moment is to read the MAC address of each board and then have a table that translates that to a feed name. Is there some other way to load a unique name into each board's non-volatile memory and then access that name as a string in the code? For example, one board might be named "Office", another one might be named "Garage".

I'm using the Arduino platform and the PlatformIO / VS Code IDE in case that's helpful to know.

Thanks,
Dave

DaveAZ
 
Posts: 1
Joined: Sun Apr 15, 2018 7:14 pm

Please be positive and constructive with your questions and comments.