bugfix mac address to backend, added piBeacon name/device id to backend request
bugfix mac address to backend, added piBeacon name/device id to backend request

file:a/app.js -> file:b/app.js
--- a/app.js
+++ b/app.js
@@ -23,7 +23,7 @@
 {
 	if (app.SERVER){
 		request({
-			url: app.SERVER+'&macaddress'+app.MACADDRESS,
+			url: app.SERVER+'&macaddress='+app.MACADDRESS+'&name='+app.NAME+'&device_id='+DEVICE_ID,
 			json: true
 		}, function (error, response, body) {
 			if (!error && response.statusCode === 200) {
@@ -39,3 +39,4 @@
 }
 
 module.exports = app
+

--- a/default/piBeacon
+++ b/default/piBeacon
@@ -1,4 +1,5 @@
 DEVICES=1
+NAME="piBeacon demo"
 SERVER=http://demo.razvi.ro/piBeacon/index.php?
 INTERVAL=60
 

comments