Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esp32
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
esp32
Commits
ec29ef62
Commit
ec29ef62
authored
Jun 04, 2017
by
omwansafelix
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added gatt_server_notif_switch resource files
parent
869fcee6
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
550 additions
and
0 deletions
+550
-0
Makefile
gatt_server_notif_switch/Makefile
+10
-0
README.md
gatt_server_notif_switch/README.md
+17
-0
Kconfig
gatt_server_notif_switch/main/Kconfig
+12
-0
component.mk
gatt_server_notif_switch/main/component.mk
+8
-0
gatt_server_notif_switch.c
gatt_server_notif_switch/main/gatt_server_notif_switch.c
+499
-0
sdkconfig.defaults
gatt_server_notif_switch/sdkconfig.defaults
+4
-0
No files found.
gatt_server_notif_switch/Makefile
0 → 100644
View file @
ec29ef62
#
# 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/README.md
0 → 100644
View file @
ec29ef62
# 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
gatt_server_notif_switch/main/Kconfig
0 → 100644
View file @
ec29ef62
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
gatt_server_notif_switch/main/component.mk
0 → 100644
View file @
ec29ef62
#
# 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.
#
gatt_server_notif_switch/main/gatt_server_notif_switch.c
0 → 100644
View file @
ec29ef62
This diff is collapsed.
Click to expand it.
gatt_server_notif_switch/sdkconfig.defaults
0 → 100644
View file @
ec29ef62
# Override some defaults so BT stack is enabled
# and WiFi disabled by default in this example
CONFIG_BT_ENABLED=y
CONFIG_WIFI_ENABLED=n
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment