json - converting Javascript's Date.now() into timestamp in Stream Analytics -


i tried collect pressure values using node.js in raspberry pi , azure stream analytics in azure iot hub. sent data iot hub json file using code :

var data = json.stringify({                 deviceid: "myraspi10",                pressureval: value,                 time:date.now()             }); 

when checked console, here's being sent hub

{     "deviceid":"myraspi10",     "pressureval":39,     "time":1470642749428 } 

how convert time value timestamp in azure stream analytics?

try sending new date() instead of date.now(). produce string output "2016-08-08t08:22:34‌​.905z" may azure stream analytics treat date. (haven't used though, idea).


Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -