Commit ec29ef62 authored by omwansafelix's avatar omwansafelix

added gatt_server_notif_switch resource files

parent 869fcee6
#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#
PROJECT_NAME := gatt_server_demos
COMPONENT_ADD_INCLUDEDIRS := components/include
include $(IDF_PATH)/make/project.mk
# gatt_server_notif_switch
A sample program for ESP32 on esp-idf. This program send notification by push or release GPIO0 switch.
# Partner program
The following nodejs program can listen notice from this project.
- [esp32-nodejs-samples/listen-notification.js](https://github.com/asukiaaa/esp32-nodejs-samples/blob/master/listen-notification.js)
- [gatt_client_listen_notif_then_output_to_led](../gatt_client_listen_notif_then_output_to_led)
# License
Appache v2
# References
- [esp-idf/examples/bluetooth/gatt_server](https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/gatt_server)
- [esp-idf/examples/peripherals/gpio/](https://github.com/espressif/esp-idf/tree/master/examples/peripherals/gpio)
- [GATT SERVER API: esp_ble_gatts_send_indicate](http://esp-idf.readthedocs.io/en/latest/api/bluetooth/esp_gatts.html#_CPPv227esp_ble_gatts_send_indicate13esp_gatt_if_t8uint16_t8uint16_t8uint16_tP7uint8_tb)
- [ESP32からBLE GATTのnotifを発信し、nodejs(noble)で受信する方法](http://asukiaaa.blogspot.com/2017/04/esp32ble-gattnodejsnoble.html)
\ No newline at end of file
menu "Example 'GATT SERVER' Config"
config SET_RAW_ADV_DATA
bool "Use raw data for advertising packets and scan response data"
help
If this config item is set, raw binary data will be used to generate advertising & scan response data.
This option uses the esp_ble_gap_config_adv_data_raw() and esp_ble_gap_config_scan_rsp_data_raw() functions.
If this config item is unset, advertising & scan response data is provided via a higher-level esp_ble_adv_data_t structure.
The lower layer will generate the BLE packets. This option has higher overhead at runtime.
endmenu
#
# Main Makefile. This is basically the same as a component makefile.
#
# This Makefile should, at the very least, just include $(SDK_PATH)/make/component_common.mk. By default,
# this will take the sources in the src/ directory, compile them and link them into
# lib(subdirectory_name).a in the build directory. This behaviour is entirely configurable,
# please read the ESP-IDF documents if you need to do this.
#
This diff is collapsed.
# Override some defaults so BT stack is enabled
# and WiFi disabled by default in this example
CONFIG_BT_ENABLED=y
CONFIG_WIFI_ENABLED=n
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment