MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / power

Method power

Scanning/Scanning.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void SpectrumMap::power(GSM::GSMBand band, unsigned ARFCN, float freq, LinkDirection& linkDir, float dBm)
81{
82 char q1[200];
83 sprintf(q1,"INSERT OR REPLACE INTO SPECTRUM_MAP (BAND,TIMESTAMP,ARFCN,RSSI,FREQ,LINK) "
84 "VALUES (%u,%u,%u,%f,%f,'%s')",
85 (int)band,(unsigned)time(NULL),ARFCN,dBm,freq,linkDir.string());
86 bool s = sqlite3_command(mDB,q1);
87 if (!s) LOG(ALERT) << "write to spectrum map failed";
88}
89
90void SpectrumMap::power(GSM::GSMBand band, unsigned ARFCN, LinkDirection& linkDir, float dBm)
91{

Callers 1

powerFunction · 0.45

Calls 2

powerFunction · 0.85
stringMethod · 0.80

Tested by

no test coverage detected