Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RE: How to transfer sensor data from ESP32 peripheral server to ESP32 central client #2

Open
aaronchan1992 opened this issue Jun 3, 2019 · 7 comments

Comments

@aaronchan1992
Copy link

Hi,
I am working on a parking project based on esp32. Can you provide me with some guidelines and tips on how I can send data from an esp32 server to another esp32 client using ble advertising. As of now, I am able to do ble pairing which connect the server to the client by tallying the UUID and bluetooth mac address. Beyond it I really need your help.

Thank you.

ESP32 ble.zip

@aaronchan1992
Copy link
Author

Thanks for sharing me the code. I intend to use the hall effect and a ultrasonic sensor to detect the presence of vehicle on the server. Then it can pass the data to the client esp32 board. Then lastly on the client side I want to push the parking availability data to a webserver using the wifi AP. Is it possible?

@chegewara
Copy link
Owner

Sure, it is possible.

@aaronchan1992
Copy link
Author

Hi may I know do you have a working code to demonstrate the BLE communication between the server peripheral and central client to give me a better understanding. I need some good references to help me get started with my project. Thank you.

@chegewara
Copy link
Owner

Examples included in snippets library are good start.

@aaronchan1992
Copy link
Author

From the code it is merely a ble advertising function performed from the server side right, so on the client side I can still use my original code for ble pairing right? From it didn't exactly show how can the client retrieve the data from my server. Do I need to create a gatt profile and descriptor for the server. Can you elaborate more on it. Thanks

@aaronchan1992
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants