Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send transmission id to google app engine. #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/dexdrip/dexdrip.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ static volatile BIT doing_retry = 0;
static uint32 XDATA gsm_delay = 0; // how long we spent uplinking
static uint32 XDATA lastraw = 0;
static uint32 XDATA lastfiltered = 0;
static uint8 XDATA last_transmittion_id = 0;
static uint32 XDATA lasttime = 0;
static uint32 XDATA general_timer = 0;
volatile uint8 sequential_missed_packets = 0;
Expand Down Expand Up @@ -1403,6 +1404,7 @@ print_packet (Dexcom_packet * pPkt)
lasttime = getMs ();
lastraw = dex_num_decoder (pPkt->raw);
lastfiltered = dex_num_decoder (pPkt->filtered) * 2;
last_transmittion_id = (pPkt->txId & 0xFC) >> 2;

uartEnable ();

Expand Down Expand Up @@ -1478,7 +1480,7 @@ gsm_send_command_getdata (const char *command, const char *response, int timeout

#ifdef GET_BATTERY_STATUS
sprintf (param,"%s?rr=%lu&zi=%lu&pc=%s&lv=%lu&lf=%lu&db=%hhu",settings.http_url, getMs (), dex_tx_id, settings.udp_port, lastraw, lastfiltered,last_dex_battery);
sprintf (stringBuffer, "&ts=%lu&bp=%d&bm=%d&ct=%d&gl=%s", (getMs () - lasttime), batteryPercent, batteryMillivolts, getCpuDegC(), lastLocation);
sprintf (stringBuffer, "&ts=%lu&bp=%d&bm=%d&ct=%d&gl=%s&ti=%hhu", (getMs () - lasttime), batteryPercent, batteryMillivolts, getCpuDegC(), lastLocation, last_transmittion_id);
#else
sprintf (param, "%s?rr=%lu&zi=%lu&pc=%s&lv=%lu", settings.http_url,getMs (), dex_tx_id, settings.udp_port lastraw,
sprintf (stringBuffer,"&lf=%lu&ts=%lu&ct=%d&gl=%s",
Expand Down