Redperij / ChirpStack-server-devices-manager

Shell scripts that utilise Robot Framework and Python in order to simplify devices management on the ChirpStack network server.
GNU General Public License v3.0
0 stars 0 forks source link

Same eui check between apps. #6

Open Redperij opened 1 year ago

Redperij commented 1 year ago

Device's EUI must be unique across all apps. If we fail upon device creation, most likely it means that this eui is held by some other device in the other apps or in the current. We have to check for it and give the app name. (If the app name is the same, try to delete the existing device and create it anew, then there is no reason to give an error.)

Redperij commented 1 year ago

It is terribly hard to fix, considering that app name doesn't have to be unique. Any 2 apps with the same name will break the algorithm. As well as it will be unforgivingly slow. So temporary solution should suffice. Hinting what may have caused an error is better than spending several minutes to find what exactly caused it.