From: Kevron Rees Date: Fri, 12 Sep 2014 21:01:33 +0000 (-0700) Subject: fixed up bluemonkey configuration X-Git-Tag: 0.12.903~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a77fb420eec91790c5d3c6d30ab9a049a3db8613;p=profile%2Fivi%2Fautomotive-message-broker.git fixed up bluemonkey configuration --- diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 866fbb0..4d68156 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,6 +1,6 @@ set(amb_examples configwheel databaseconfig databasesource dbusconfig exampleconfig gpsnmea obdsourceconfig opencvluxconfig opencvdbusconfig qtmainloopconfig websocketsink2 websocketsource2 - testsourceconfig) + testsourceconfig bluemonkey/bluemonkeyconfig) configure_file (${CMAKE_CURRENT_SOURCE_DIR}/configwheel.in ${CMAKE_CURRENT_SOURCE_DIR}/configwheel @ONLY) @@ -16,6 +16,7 @@ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/qtmainloopconfig.in ${CMAKE_CURRENT_ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/websocketsink2.in ${CMAKE_CURRENT_SOURCE_DIR}/websocketsink2 @ONLY) configure_file (${CMAKE_CURRENT_SOURCE_DIR}/websocketsource2.in ${CMAKE_CURRENT_SOURCE_DIR}/websocketsource2 @ONLY) configure_file (${CMAKE_CURRENT_SOURCE_DIR}/testsourceconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/testsourceconfig @ONLY) +configure_file (${CMAKE_CURRENT_SOURCE_DIR}/bluemonkey/bluemonkeyconfig.in ${CMAKE_CURRENT_SOURCE_DIR}/bluemonkey/bluemonkeyconfig @ONLY) install (FILES ${amb_examples} DESTINATION /etc/ambd/examples) diff --git a/plugins/bluemonkey/config.js b/plugins/bluemonkey/config.js index 363f3f8..dd51234 100644 --- a/plugins/bluemonkey/config.js +++ b/plugins/bluemonkey/config.js @@ -1,5 +1,19 @@ var speedProperty = bluemonkey.subscribeTo("VehicleSpeed"); -bluemonkey.loadConfig("customPrograms.js"); +bluemonkey.log("Javascript engine works!!!!"); - +bluemonkey.createCustomProperty("BluemonkeyTest", false); + +var bluemonkeyTest = bluemonkey.subscribeTo("BluemonkeyTest"); + +bluemonkeyTest.value = true; + +var timer = bluemonkey.createTimer(); + +timer.interval = 1000; +timer.singleShot = false; +timer.timeout.connect(function() { + bluemonkeyTest.value = !bluemonkeyTest.value; +}); + +timer.start();