Skip to content

Commit

Permalink
Heroku refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayank Narula committed Nov 26, 2017
1 parent a3058e9 commit 538ccd3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public void onResponse(@NonNull Call call, @NonNull Response response)
}
};

public DeviceTokenUpdater(){

}

public DeviceTokenUpdater(Context app){
appCtx = app;
}
Expand Down
7 changes: 7 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,22 +330,29 @@ function updateStateRecordWindow(){
function pushSensorData(t,h,l,im,om,gx,gy,gz){

var Now = Date.now();
var lim,lom;

if( im == null || im == undefined){
im = false;
lim = 0;
} else if( im == "true"){
im = true;
lim = Now;
} else {
im = false;
lim = 0;
}


if( om == null || om == undefined ){
om = false;
lom = 0;
} else if( om == "true"){
om = true;
lom = Now;
} else {
om = false;
lom = 0;
}

var state = {
Expand Down

0 comments on commit 538ccd3

Please sign in to comment.