[ion] Encode the serial number in Base64

Also, expose serialNumber() in Ion and keep "copySerialNumber" in
Ion::Device. This allows the DFU bootloader to remain .bss-free.
This commit is contained in:
Romain Goyet
2018-05-04 17:06:16 +02:00
committed by Ecco
parent 11ae2da6c5
commit a29c775663
14 changed files with 90 additions and 47 deletions

View File

@@ -28,8 +28,7 @@ namespace Ion {
void msleep(long ms);
void usleep(long us);
constexpr static int SerialNumberLength = 24;
void getSerialNumber(char * buffer);
const char * serialNumber();
const char * softwareVersion();
const char * patchLevel();
const char * fccId();