kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
send unix timestamp for DFM, Metomodem
rodzic
45f947cc0b
commit
08572f7cbc
|
@ -3077,7 +3077,13 @@ void sondehub_send_data(WiFiClient *client, SondeInfo *s, struct st_sondehub *co
|
||||||
);
|
);
|
||||||
w += strlen(w);
|
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
|
if ( s->type == STYPE_DFM09_OLD) { //fix subtype
|
||||||
sprintf(w,
|
sprintf(w,
|
||||||
"\"type\": \"DFM\","
|
"\"type\": \"DFM\","
|
||||||
|
|
Ładowanie…
Reference in New Issue