[Dev] [IVI] navigator.vehicle.set

Rees, Kevron kevron.m.rees at intel.com
Wed Apr 15 20:59:00 GMT 2015


On Wed, Apr 15, 2015 at 1:14 PM, Eastwood, Jeffery <
jeastwo1 at jaguarlandrover.com> wrote:

> The example in
> https://rawgit.com/w3c/automotive-bg/master/snapshots/vehicle_spec_snapshot_latest.html
> ,
> section 13, shows a typical use of the .set method:
>
> var zone = Zone
> vehicle.door.set({"lock" : true}, zone.driver).then(resolve, reject);
>
> My question is: for a given AMB property that is not a W3C standard
> property, what to use for
> the tag? For example, If I have a property ABCDE, I would set it via
>
> var zone = Zone
> vehicle.aBCDE.set({"???" : true}, zone.driver).then(resolve, reject);
>
> What do I use in place of the ??? I have tried "value"; but that is not working; How dou you determine the correct names to use here?
>
>
By default, AMB just duplicates the property name as the value name.  So
"???" would be "ABCDE".  In 0.14 you can create custom DBus interfaces with
better naming.

See:
https://github.com/otcshare/automotive-message-broker/blob/0.14/plugins/gpsnmea/gpsnmea.cpp#L57
and
https://github.com/otcshare/automotive-message-broker/blob/0.14/plugins/gpsnmea/gpsnmea.cpp#L588

For a usage example.  This can be done from within your source plugin or
via a bluemonkey script:

https://github.com/otcshare/automotive-message-broker/blob/0.14/plugins/bluemonkey/config.js#L26


>
> Thank you,
>
>
> --
> *Jeff Eastwood*
> Software Engineer
>
> *T: *+1.971.256.9736 x1036 | *M:* +1.503.936.2895
> *Email:*  jeastwo1 at jaguarlandrover.com <rrowe at jaguarlandrover.com>
>
>
> Jaguar Land Rover North America, LLC
> 1419 NW 14th Ave, Portland, OR 97209
> *JaguarUSA.com | LandRoverUSA.com <http://www.jaguarusa.com/index.html>*
>
>
> _______________________________________________
> IVI mailing list
> IVI at lists.tizen.org
> https://lists.tizen.org/listinfo/ivi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tizen.org/pipermail/dev/attachments/20150415/34852db9/attachment.html>


More information about the Dev mailing list