<!--VARIABLE EthernetMac -->
Posted: Mon Oct 14, 2013 10:19 pm
I used in my html page to show the MAC address and it shows the incorrect data.
If I use instead,with I get the correct value displayed!
The error is only in the last byte value
ie I have a module showing on the sticker "00:03:F4:06:01:18" yet when I use I get displayed "00:03:F4:06:01:AF"
This was seen on a MOD5234, but I guess this issue is generic across platforms??
I have seen the same issue on a MOD5441X
I am using NNDK release 2.6.3
Code: Select all
<!--VARIABLE EthernetMac -->
If I use instead,
Code: Select all
<!--FUNCTIONCALL HTML_EthernetMac -->
Code: Select all
void HTML_EthernetMac( int sock, PCSTR url)
{
char line[80];
BYTE * lpb;
lpb = (BYTE*)(&EthernetMac);
sniprintf(line,sizeof(line),"%02X:%02X:%02X:%02X:%02X:%02X<br>", (int)lpb[0], (int)lpb[1], (int)lpb[2], (int)lpb[3], (int)lpb[4], (int)lpb[5]);
writestring(sock, line);
}
The error is only in the last byte value
ie I have a module showing on the sticker "00:03:F4:06:01:18" yet when I use
Code: Select all
<!--VARIABLE EthernetMac -->
This was seen on a MOD5234, but I guess this issue is generic across platforms??
I have seen the same issue on a MOD5441X
I am using NNDK release 2.6.3