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)
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)
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();