Change-Id: Iaa66bc31a703d681977450b2575979a06a718a9b
Signed-off-by: brianjjones <brian.j.jones@intel.com>
var vehicleSpeed = vehicle.get("VehicleSpeed");
console.log("Vehicle speed: " + vehicleSpeed.vehicleSpeed);
- try {
- var begin = new Date(10000000);
- var end = new Date();
- vehicle.getHistory("VehicleSpeed", begin, end ,
- function(data){
- console.log("Vehicle data: " +
- data.toString());
- },
- function(err) {
- console.log("getHistory() Error: " + err);
- });
- }
- catch(err){
- console.log("Vehicle GetHistory failed!" + err);
- }
-
if(typeof(Storage)!== "undefined")
{
addyTemp = localStorage.address;