Skip to content

@mega-yfue/eufy-sdk / tuya / isoToDialCode

Function: isoToDialCode() ​

ts
function isoToDialCode(iso): string | undefined;

Map an ISO 3166-1 alpha-2 country code (e.g. "GB", "DE") to its E.164 numeric dial code. Covers the main eufy device markets. Returns undefined for unlisted codes — callers fall back to the region-based heuristic.

Parameters ​

iso ​

string

Returns ​

string | undefined

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.