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/

Committer:
edamame22
Date:
Thu Apr 13 04:48:11 2017 +0000
Revision:
0:29983394c6b6
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
edamame22 0:29983394c6b6 1 #
edamame22 0:29983394c6b6 2 # Makefile for mbed Client C++ Library
edamame22 0:29983394c6b6 3 #
edamame22 0:29983394c6b6 4 # List of subdirectories to build
edamame22 0:29983394c6b6 5 TEST_FOLDER := ./test/
edamame22 0:29983394c6b6 6
edamame22 0:29983394c6b6 7 # Define compiler toolchain with CC or PLATFORM variables
edamame22 0:29983394c6b6 8 # Example (GCC toolchains, default $CC and $AR are used)
edamame22 0:29983394c6b6 9 # make
edamame22 0:29983394c6b6 10 #
edamame22 0:29983394c6b6 11 # OR (Cross-compile GCC toolchain)
edamame22 0:29983394c6b6 12 # make PLATFORM=arm-linux-gnueabi-
edamame22 0:29983394c6b6 13 #
edamame22 0:29983394c6b6 14 # OR (ArmCC/Keil)
edamame22 0:29983394c6b6 15 # make CC=ArmCC AR=ArmAR
edamame22 0:29983394c6b6 16 #
edamame22 0:29983394c6b6 17 # OR (IAR-ARM)
edamame22 0:29983394c6b6 18 # make CC=iccarm
edamame22 0:29983394c6b6 19
edamame22 0:29983394c6b6 20 LIB = libmbedclient.a
edamame22 0:29983394c6b6 21
edamame22 0:29983394c6b6 22 # List of unit test directories for libraries
edamame22 0:29983394c6b6 23 UNITTESTS := $(sort $(dir $(wildcard $(TEST_FOLDER)*/utest/*)))
edamame22 0:29983394c6b6 24
edamame22 0:29983394c6b6 25 # If configuration is not specified, use linux
edamame22 0:29983394c6b6 26 ifeq (,$(CONFIG))
edamame22 0:29983394c6b6 27 CONFIG := linux
edamame22 0:29983394c6b6 28 endif
edamame22 0:29983394c6b6 29
edamame22 0:29983394c6b6 30 include sources.mk
edamame22 0:29983394c6b6 31 include include_dirs.mk
edamame22 0:29983394c6b6 32 include config/$(CONFIG).mk
edamame22 0:29983394c6b6 33
edamame22 0:29983394c6b6 34 SERVLIB_DIR := ../../libService
edamame22 0:29983394c6b6 35 NSDL_C_DIR := ../../nsdl-c
edamame22 0:29983394c6b6 36 override CFLAGS += -I$(SERVLIB_DIR)/libService
edamame22 0:29983394c6b6 37 override CFLAGS += -I$(NSDL_C_DIR)/nsdl-c
edamame22 0:29983394c6b6 38 override CFLAGS += $(addprefix -I,$(INCLUDE_DIRS))
edamame22 0:29983394c6b6 39 override CFLAGS += $(addprefix -D,$(FLAGS))
edamame22 0:29983394c6b6 40 ifeq ($(DEBUG),1)
edamame22 0:29983394c6b6 41 override CFLAGS += -DHAVE_DEBUG
edamame22 0:29983394c6b6 42 endif
edamame22 0:29983394c6b6 43
edamame22 0:29983394c6b6 44 COVERAGEFILE := ./lcov/coverage.info
edamame22 0:29983394c6b6 45
edamame22 0:29983394c6b6 46 #
edamame22 0:29983394c6b6 47 # Define compiler toolchain
edamame22 0:29983394c6b6 48 #
edamame22 0:29983394c6b6 49 include ../../libService/toolchain_rules.mk
edamame22 0:29983394c6b6 50
edamame22 0:29983394c6b6 51 $(eval $(call generate_rules,$(LIB),$(SRCS)))
edamame22 0:29983394c6b6 52
edamame22 0:29983394c6b6 53 # Extend default clean rule
edamame22 0:29983394c6b6 54 clean: clean-extra
edamame22 0:29983394c6b6 55
edamame22 0:29983394c6b6 56 $(CLEANDIRS):
edamame22 0:29983394c6b6 57 @make -C $(@:clean-%=%) clean
edamame22 0:29983394c6b6 58
edamame22 0:29983394c6b6 59 clean-extra: $(CLEANDIRS)