| 78 | } |
| 79 | |
| 80 | void 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 | |
| 90 | void SpectrumMap::power(GSM::GSMBand band, unsigned ARFCN, LinkDirection& linkDir, float dBm) |
| 91 | { |