Send current frequency to client app, with current RSSI

pull/67/head
Dave Akerman 2020-06-05 18:37:32 +00:00
rodzic 9339b4f414
commit 3f44542ff8
3 zmienionych plików z 9 dodań i 3 usunięć

Wyświetl plik

@ -232,6 +232,11 @@ Many thanks to David Brooke for coding this feature and the AFC.
Change History
==============
06/05/2020 - V1.8.38
--------------------
Send current frequency to client app, with current RSSI
06/05/2020 - V1.8.37
--------------------

Wyświetl plik

@ -46,7 +46,7 @@
#include "udpclient.h"
#include "lifo_buffer.h"
#define VERSION "V1.8.37"
#define VERSION "V1.8.38"
bool run = TRUE;
// RFM98

Wyświetl plik

@ -237,9 +237,10 @@ int SendJSON(int connfd)
{
if (Config.LoRaDevices[Channel].InUse)
{
sprintf(line, "{\"class\":\"STATS\",\"index\":%d,\"rssi\":%d}\r\n",
sprintf(line, "{\"class\":\"STATS\",\"index\":%d,\"rssi\":%d,\"freq\":%.4lf}\r\n",
Channel,
Config.LoRaDevices[Channel].CurrentRSSI);
Config.LoRaDevices[Channel].CurrentRSSI,
Config.LoRaDevices[Channel].Frequency + Config.LoRaDevices[Channel].FrequencyOffset);
strcat(sendBuff, line);
}