I am using IDE v1.8.9 under Ubuntu 19.04 to test the MXChip AZ3166 board. I have installed its package, select the right board/port pair. But while compiling the example code, ScanNetworks, I have run into a newbie issue by encountering the following message during compilation:
For the following statement:
Serial.print(mac[5], HEX);
I encounter the following error message:
Build options changed, rebuilding all
/home/reza/Documents/IoT/Arduino/MXCHIP AZ3166/WiFi/ScanNetworks/ScanNetworks.ino: In function 'void printMacAddress()':
ScanNetworks:51:24: error: 'HEX' was not declared in this scope
Serial.print(mac[5], HEX);
^~~
exit status 1
'HEX' was not declared in this scope
Isn't HEX supposed to be part of the default/standard declarations and does not have to be defined explicitly? At least that used to be my understanding with respect this term as well as DEC and OCT. What is my mistake, please?
Thanks.