Particle library to look up carrier names and countries from MCC/MNC
Device OS Version:
This table is generated from an automated build. Success only indicates that the code compiled successfully.
This content is provided by the library maintainer and has not been validated or approved.
Library to look up country codes (MCC) and carrier names (MCC-MNC) from Particle device firmware.
This library uses a table stored in code flash space and uses about 30K of flash space (out of 128K) so it's probably more appropriate for debugging tools.
The two functions implemented are:
String lookupCountry(uint16_t mcc); String lookupMccMnc(uint16_t mcc, uint16_t mnc);
The tool works by taking the mccmnc.json file that's generated by the TowerInfo Tool and packing the data into significantly smaller C structures. The tool is in generator-tool and is run by doing:
cd generator-tool node app.js
This generates the Carriers.h file from mccmnc.json.