This is an example of BLE GATT Client, which receives broadcast data from BLE_Server_BME280 ( a GATT server) , then transfers values up to mbed Device Connector (cloud).
Please refer details about BLEClient_mbedDevConn below. https://github.com/soramame21/BLEClient_mbedDevConn
The location of required BLE GATT server, BLE_Server_BME280, is at here. https://developer.mbed.org/users/edamame22/code/BLE_Server_BME280/
pal/Test/Unity/test/rakefile@2:b894b3508057, 2017-09-05 (annotated)
- Committer:
- Ren Boting
- Date:
- Tue Sep 05 11:56:13 2017 +0900
- Revision:
- 2:b894b3508057
- Parent:
- 0:29983394c6b6
Update all libraries and reform main.cpp
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
edamame22 | 0:29983394c6b6 | 1 | # ========================================== |
edamame22 | 0:29983394c6b6 | 2 | # Unity Project - A Test Framework for C |
edamame22 | 0:29983394c6b6 | 3 | # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams |
edamame22 | 0:29983394c6b6 | 4 | # [Released under MIT License. Please refer to license.txt for details] |
edamame22 | 0:29983394c6b6 | 5 | # ========================================== |
edamame22 | 0:29983394c6b6 | 6 | |
edamame22 | 0:29983394c6b6 | 7 | UNITY_ROOT = File.expand_path(File.dirname(__FILE__)) + '/' |
edamame22 | 0:29983394c6b6 | 8 | |
edamame22 | 0:29983394c6b6 | 9 | require 'rake' |
edamame22 | 0:29983394c6b6 | 10 | require 'rake/clean' |
edamame22 | 0:29983394c6b6 | 11 | require UNITY_ROOT + 'rakefile_helper' |
edamame22 | 0:29983394c6b6 | 12 | |
edamame22 | 0:29983394c6b6 | 13 | TEMP_DIRS = [ |
edamame22 | 0:29983394c6b6 | 14 | File.join(UNITY_ROOT, 'build') |
edamame22 | 0:29983394c6b6 | 15 | ] |
edamame22 | 0:29983394c6b6 | 16 | |
edamame22 | 0:29983394c6b6 | 17 | TEMP_DIRS.each do |dir| |
edamame22 | 0:29983394c6b6 | 18 | directory(dir) |
edamame22 | 0:29983394c6b6 | 19 | CLOBBER.include(dir) |
edamame22 | 0:29983394c6b6 | 20 | end |
edamame22 | 0:29983394c6b6 | 21 | |
edamame22 | 0:29983394c6b6 | 22 | task :prepare_for_tests => TEMP_DIRS |
edamame22 | 0:29983394c6b6 | 23 | |
edamame22 | 0:29983394c6b6 | 24 | include RakefileHelpers |
edamame22 | 0:29983394c6b6 | 25 | |
edamame22 | 0:29983394c6b6 | 26 | # Load proper GCC as defult configuration |
edamame22 | 0:29983394c6b6 | 27 | DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml' |
edamame22 | 0:29983394c6b6 | 28 | configure_toolchain(DEFAULT_CONFIG_FILE) |
edamame22 | 0:29983394c6b6 | 29 | |
edamame22 | 0:29983394c6b6 | 30 | desc "Test unity with its own unit tests" |
edamame22 | 0:29983394c6b6 | 31 | task :unit => [:prepare_for_tests] do |
edamame22 | 0:29983394c6b6 | 32 | run_tests get_unit_test_files |
edamame22 | 0:29983394c6b6 | 33 | end |
edamame22 | 0:29983394c6b6 | 34 | |
edamame22 | 0:29983394c6b6 | 35 | desc "Test unity's helper scripts" |
edamame22 | 0:29983394c6b6 | 36 | task :scripts => [:prepare_for_tests] do |
edamame22 | 0:29983394c6b6 | 37 | Dir['tests/test_*.rb'].each do |scriptfile| |
edamame22 | 0:29983394c6b6 | 38 | require "./"+scriptfile |
edamame22 | 0:29983394c6b6 | 39 | end |
edamame22 | 0:29983394c6b6 | 40 | end |
edamame22 | 0:29983394c6b6 | 41 | |
edamame22 | 0:29983394c6b6 | 42 | desc "Generate test summary" |
edamame22 | 0:29983394c6b6 | 43 | task :summary do |
edamame22 | 0:29983394c6b6 | 44 | report_summary |
edamame22 | 0:29983394c6b6 | 45 | end |
edamame22 | 0:29983394c6b6 | 46 | |
edamame22 | 0:29983394c6b6 | 47 | desc "Build and test Unity" |
edamame22 | 0:29983394c6b6 | 48 | task :all => [:clean, :prepare_for_tests, :scripts, :unit, :summary] |
edamame22 | 0:29983394c6b6 | 49 | task :default => [:clobber, :all] |
edamame22 | 0:29983394c6b6 | 50 | task :ci => [:no_color, :default] |
edamame22 | 0:29983394c6b6 | 51 | task :cruise => [:no_color, :default] |
edamame22 | 0:29983394c6b6 | 52 | |
edamame22 | 0:29983394c6b6 | 53 | desc "Load configuration" |
edamame22 | 0:29983394c6b6 | 54 | task :config, :config_file do |t, args| |
edamame22 | 0:29983394c6b6 | 55 | configure_toolchain(args[:config_file]) |
edamame22 | 0:29983394c6b6 | 56 | end |
edamame22 | 0:29983394c6b6 | 57 | |
edamame22 | 0:29983394c6b6 | 58 | task :no_color do |
edamame22 | 0:29983394c6b6 | 59 | $colour_output = false |
edamame22 | 0:29983394c6b6 | 60 | end |