Hello,

I'm trying to subscribe to vehicle speed

var vehicle = tizen.vehicle;

vehicle.subscribe("VehicleSpeed",function(data) {
  alert("Vehicle data" + data.VehicleSpeed);
});

But it gives me undefined.



var speed = vehicle.get("VehicleSpeed");
alert("My speed is: " + speed.vehicleSpeed);
It returns me a random number as speed.



To make sure results are good I tried to use set but it dosen't works and 
terminates.

vehicle.set("VehicleSpeed",100);



Why VehicleSpeed is a random number and why using subscribe it returns 
undefined? How should I use vehicle.set ? I'm running 
tizen_20130829.9_ivi-release-mbr-i586 image in vmware player.

Thank you!



Regards,
Anurag Bharati

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Information contained and transmitted by this e-mail is confidential and 
proprietary to iGATE and its affiliates and is intended for use only by the 
recipient. If you are not the intended recipient, you are hereby notified that 
any dissemination, distribution, copying or use of this e-mail is strictly 
prohibited and you are requested to delete this e-mail immediately and notify 
the originator or [email protected] <mailto:[email protected]>. iGATE does 
not enter into any agreement with any party by e-mail. Any views expressed by 
an individual do not necessarily reflect the view of iGATE. iGATE is not 
responsible for the consequences of any actions taken on the basis of 
information provided, through this email. The contents of an attachment to this 
e-mail may contain software viruses, which could damage your own computer 
system. While iGATE has taken every reasonable precaution to minimise this 
risk, we cannot accept liability for any damage which you sustain as a result 
of software viruses. You should carry out your own virus checks before opening 
an attachment. To know more about iGATE please visit www.igate.com 
<http://www.igate.com>.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
IVI mailing list
[email protected]
https://lists.tizen.org/listinfo/ivi

Reply via email to