don't return a string the value 'undefined' if there is no battery info

This commit is contained in:
Jason Calabrese
2014-08-31 23:39:15 -07:00
parent 601662d193
commit c1184f5ccc
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#!/bin/sh
curl -H "Content-Type: application/json" -XPOST 'http://localhost:1337/api/v1/devicestatus/' -d '{
#curl -H "Content-Type: application/json" -XPOST 'http://localhost:1337/api/v1/devicestatus/' -d '{
curl -H "Content-Type: application/json" -XPOST 'http://ns-dev2.cbrese.com/api/v1/devicestatus/' -d '{
"uploaderBattery": 55
}'