MCPcopy Create free account
hub / github.com/SpacehuhnTech/espwebtool / formatMacAddr

Function formatMacAddr

src/lib/esp.js:11–13  ·  view source on GitHub ↗
(macAddr)

Source from the content-addressed store, hash-verified

9};
10
11const formatMacAddr = (macAddr) => {
12 return macAddr.map((value) => value.toString(16).toUpperCase().padStart(2, '0')).join(':')
13}
14
15const sleep = (ms) => {
16 return new Promise((resolve) => setTimeout(resolve, ms));

Callers 1

clickConnectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected