@hello.nrfcloud.com/proto
Version:
Documents the communication protocol between the hello.nrfcloud.com backend and the web application
13 lines (12 loc) • 418 B
JavaScript
import { generateCode } from './generateCode.js';
export var fingerprintGenerator = function(productionRun) {
var productionRunCodes = [];
return function() {
var code = generateCode();
while(productionRunCodes.includes(code)){
code = generateCode();
}
productionRunCodes.push(code);
return "".concat(productionRun.toString(16), ".").concat(code);
};
};