MCPcopy Create free account
hub / github.com/akdeb/ElatoAI / getMacAddressFromDeviceCode

Function getMacAddressFromDeviceCode

frontend-nextjs/lib/utils.ts:27–32  ·  view source on GitHub ↗
(deviceCode: string)

Source from the content-addressed store, hash-verified

25};
26
27export const getMacAddressFromDeviceCode = (deviceCode: string): string => {
28 // add colons to the device code
29 return deviceCode.substring(0, 2) + ":" + deviceCode.substring(2, 4) + ":" +
30 deviceCode.substring(4, 6) + ":" + deviceCode.substring(6, 8) + ":" +
31 deviceCode.substring(8, 10) + ":" + deviceCode.substring(10, 12);
32};
33
34export const getPersonalityImageSrc = (title: string) => {
35 return `/personality/${title.toLowerCase().replace(/\s+/g, "_")}.jpeg`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected