send unix timestamp for DFM, Metomodem

pull/87/head
Uskompuf 2021-05-29 18:26:51 +10:00 zatwierdzone przez Hansi, dl9rdz
rodzic 45f947cc0b
commit 08572f7cbc
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -3077,7 +3077,13 @@ void sondehub_send_data(WiFiClient *client, SondeInfo *s, struct st_sondehub *co
);
w += strlen(w);
if ( s->type == STYPE_DFM09_OLD || s->type == STYPE_DFM06_OLD || s->type == STYPE_M10 || s->type == STYPE_M20 ) { //don't send frame for these sonde
if ( s->type == STYPE_DFM09_OLD || s->type == STYPE_DFM06_OLD || s->type == STYPE_M10 || s->type == STYPE_M20 ) { //send frame as unix timestamp for these sonde
//send unix timestamp
sprintf(w,
"\"frame\": \"%d\",",
int(t)
);
w += strlen(w);
if ( s->type == STYPE_DFM09_OLD) { //fix subtype
sprintf(w,
"\"type\": \"DFM\","