CarrierLookupRK (community library)
Summary
Name | Value |
---|---|
Name | CarrierLookupRK |
Version | 0.0.1 |
Installs | |
License | MIT |
Author | rickkas7@rickkas7.com |
URL | https://github.com/rickkas7/CarrierLookupRK |
Repository | https://github.com/rickkas7/M8RelayRK.git |
Download | .tar.gz |
Particle library to look up carrier names and countries from MCC/MNC
Example Build Testing
Device OS Version:
This table is generated from an automated build. Success only indicates that the code compiled successfully.
Library Read Me
This content is provided by the library maintainer and has not been validated or approved.
CarrierLookupRK
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);
Generating New Data
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.
Browse Library Files