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/extras/fixture/rakefile.rb@0:29983394c6b6, 2017-04-13 (annotated)
- Committer:
- edamame22
- Date:
- Thu Apr 13 04:48:11 2017 +0000
- Revision:
- 0:29983394c6b6
Initial commit
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 | HERE = 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 'rake/testtask' |
edamame22 | 0:29983394c6b6 | 12 | require HERE + 'rakefile_helper' |
edamame22 | 0:29983394c6b6 | 13 | |
edamame22 | 0:29983394c6b6 | 14 | TEMP_DIRS = [ |
edamame22 | 0:29983394c6b6 | 15 | File.join(HERE, 'build') |
edamame22 | 0:29983394c6b6 | 16 | ] |
edamame22 | 0:29983394c6b6 | 17 | |
edamame22 | 0:29983394c6b6 | 18 | TEMP_DIRS.each do |dir| |
edamame22 | 0:29983394c6b6 | 19 | directory(dir) |
edamame22 | 0:29983394c6b6 | 20 | CLOBBER.include(dir) |
edamame22 | 0:29983394c6b6 | 21 | end |
edamame22 | 0:29983394c6b6 | 22 | |
edamame22 | 0:29983394c6b6 | 23 | task :prepare_for_tests => TEMP_DIRS |
edamame22 | 0:29983394c6b6 | 24 | |
edamame22 | 0:29983394c6b6 | 25 | include RakefileHelpers |
edamame22 | 0:29983394c6b6 | 26 | |
edamame22 | 0:29983394c6b6 | 27 | # Load default configuration, for now |
edamame22 | 0:29983394c6b6 | 28 | DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml' |
edamame22 | 0:29983394c6b6 | 29 | configure_toolchain(DEFAULT_CONFIG_FILE) |
edamame22 | 0:29983394c6b6 | 30 | |
edamame22 | 0:29983394c6b6 | 31 | task :unit => [:prepare_for_tests] do |
edamame22 | 0:29983394c6b6 | 32 | run_tests |
edamame22 | 0:29983394c6b6 | 33 | end |
edamame22 | 0:29983394c6b6 | 34 | |
edamame22 | 0:29983394c6b6 | 35 | desc "Build and test Unity Framework" |
edamame22 | 0:29983394c6b6 | 36 | task :all => [:clean, :unit] |
edamame22 | 0:29983394c6b6 | 37 | task :default => [:clobber, :all] |
edamame22 | 0:29983394c6b6 | 38 | task :ci => [:no_color, :default] |
edamame22 | 0:29983394c6b6 | 39 | task :cruise => [:no_color, :default] |
edamame22 | 0:29983394c6b6 | 40 | |
edamame22 | 0:29983394c6b6 | 41 | desc "Load configuration" |
edamame22 | 0:29983394c6b6 | 42 | task :config, :config_file do |t, args| |
edamame22 | 0:29983394c6b6 | 43 | configure_toolchain(args[:config_file]) |
edamame22 | 0:29983394c6b6 | 44 | end |
edamame22 | 0:29983394c6b6 | 45 | |
edamame22 | 0:29983394c6b6 | 46 | task :no_color do |
edamame22 | 0:29983394c6b6 | 47 | $colour_output = false |
edamame22 | 0:29983394c6b6 | 48 | end |