Skip to content
This repository was archived by the owner on Sep 13, 2020. It is now read-only.

Commit 7fc4696

Browse files
author
Damian Kowalewski
committed
Merge pull request #34 from mtl2034/master
send push only to device that is being tested
2 parents 1b5cfb3 + dc470c5 commit 7fc4696

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

unix/samples/test/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ int main(int argc, char *argv[]) {
262262
int loopCount = 20;
263263

264264

265-
printf("[!!!!!!!] Run ./push.sh %ld\n", run);
265+
printf("[!!!!!!!] Run ./push.sh %s %ld\n", id, run);
266266

267267
while(loopCount--) {
268268
struct timeval tv;

unix/samples/test/push.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/sh
22

3-
43
COUNTER=0
54
while [ $COUNTER -lt 10 ]; do
65
curl -X POST \
@@ -9,9 +8,9 @@ while [ $COUNTER -lt 10 ]; do
98
-H "Content-Type: application/json" \
109
-d "{
1110
\"where\": {
12-
\"deviceType\": \"embedded\"
11+
\"installationId\": \"$1\"
1312
},
14-
\"data\": {\"id\": \"$1\"}
13+
\"data\": {\"id\": \"$2\"}
1514
}" \
1615
https://api.parse.com/1/push
1716
let COUNTER=COUNTER+1

0 commit comments

Comments
 (0)