I need to convert a mac address into an integer before sending it.
On a Lua interpreter, this code is OK:
> mac_string = "68:a8:6d:0b:90:46"
> mac_int = tonumber(mac_string:gsub(':',''),16)
> print(string.format("%d", mac_int))
115072593268806But On my ESP12E, this code will output:
mac_string="68:a8:6d:0b:90:46"
> mac_int = tonumber(mac_string:gsub(':',''),16)
> print(string.format("%d", mac_int))
2147483647
I'm guessing there is a limitation in the size of integers.
How can I perform my convertion?
Thkxs